wisemapping-frontend/packages/editor/webpack.prod.js
2022-01-31 21:07:59 +00:00

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);