Gazebo_simulation-Frontend/node_modules/connected-react-router/webpack.config.js
2020-12-21 10:29:31 -05:00

22 lines
373 B
JavaScript

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