Extensible webpack configuration for the OVH Components.
The webpack configuration can be imported and extended in your component. To import the configuration, simply add component-webpack-config as a devDependency :
yarn add -D @ovh-ux/component-webpack-config
The following configuration parameters are optionals :
- library: your component name (used to name the dist files), if not provided the component directory name will be used instead
const config = require('@ovh-ux/component-webpack-config');
module.exports = config({
library: 'my-lib',
}).merge({
entry: "./src/index.js",
externals: [
'angular', // please note that by default peerDependencies are automatically added to the externals
]
});