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

22 lines
559 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: {
2022-10-31 23:28:39 +01:00
'react': 'react',
'react-dom': 'react-dom',
2022-07-13 03:58:11 +02:00
'react-intl': 'react-intl',
2022-10-31 23:28:39 +01:00
'@emotion/styled': '@emotion/styled',
2022-11-03 02:17:00 +01:00
'@emotion/react': '@emotion/react',
2022-11-03 02:33:28 +01:00
'styled-components': 'styled-components',
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);