wisemapping-frontend/packages/editor/webpack.prod.js
Paulo Gustavo Veiga 38a2e5865d Add lint to editor
2022-11-02 18:17:00 -07:00

21 lines
513 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',
'@emotion/styled': '@emotion/styled',
'@emotion/react': '@emotion/react',
},
plugins: [new CleanWebpackPlugin()],
};
module.exports = merge(common, prodConfig);