mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 11:17:57 +01:00
21 lines
437 B
JavaScript
21 lines
437 B
JavaScript
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common');
|
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
|
|
const prodConfig = {
|
|
optimization: {
|
|
usedExports: true,
|
|
minimize: true,
|
|
},
|
|
externals: {
|
|
react: 'react',
|
|
"react-dom": 'react-dom',
|
|
"react-intl": 'react-intl',
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin(),
|
|
]
|
|
};
|
|
|
|
module.exports = merge(common, prodConfig);
|