22 lines
559 B
JavaScript
Raw Normal View History

2022-01-25 18:10:40 +00:00
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
2022-01-31 21:07:59 +00:00
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
2022-01-25 18:10:40 +00:00
const prodConfig = {
optimization: {
usedExports: true,
minimize: true,
},
externals: {
2022-10-31 15:28:39 -07:00
'react': 'react',
'react-dom': 'react-dom',
2022-07-12 18:58:11 -07:00
'react-intl': 'react-intl',
2022-10-31 15:28:39 -07:00
'@emotion/styled': '@emotion/styled',
2022-11-02 18:17:00 -07:00
'@emotion/react': '@emotion/react',
2022-11-02 18:33:28 -07:00
'styled-components': 'styled-components',
2022-01-25 18:10:40 +00:00
},
2022-07-12 18:58:11 -07:00
plugins: [new CleanWebpackPlugin()],
2022-01-25 18:10:40 +00:00
};
module.exports = merge(common, prodConfig);