You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
373 B
22 lines
373 B
var config = {
|
|
entry: './src/index',
|
|
mode: 'production',
|
|
module: {
|
|
rules: [
|
|
{ test: /\.js$/, use: [ 'babel-loader' ], exclude: /node_modules/ }
|
|
]
|
|
},
|
|
output: {
|
|
library: 'ConnectedReactRouter',
|
|
libraryTarget: 'umd'
|
|
}
|
|
}
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
config.optimization = {
|
|
minimize: true
|
|
}
|
|
}
|
|
|
|
module.exports = config
|