wisemapping-frontend/packages/editor/webpack.prod.js
Paulo Gustavo Veiga 5ee7448d3c Format JS files.
2022-07-12 18:58:11 -07:00

19 lines
429 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);