21 lines
437 B
JavaScript
Raw Normal View History

2022-01-25 18:10:40 +00:00
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
2022-01-31 21:07:59 +00:00
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
2022-01-25 18:10:40 +00:00
const prodConfig = {
optimization: {
usedExports: true,
minimize: true,
},
externals: {
react: 'react',
2022-01-31 21:07:59 +00:00
"react-dom": 'react-dom',
"react-intl": 'react-intl',
2022-01-25 18:10:40 +00:00
},
2022-01-31 21:07:59 +00:00
plugins: [
new CleanWebpackPlugin(),
]
2022-01-25 18:10:40 +00:00
};
module.exports = merge(common, prodConfig);