wisemapping-frontend/packages/editor/webpack.prod.js

19 lines
429 B
JavaScript
Raw Normal View History

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