mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
22 lines
561 B
JavaScript
22 lines
561 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',
|
|
'@mui/icons-material': '@mui/icons-material',
|
|
'@mui/material': '@mui/material',
|
|
},
|
|
plugins: [new CleanWebpackPlugin()],
|
|
};
|
|
|
|
module.exports = merge(common, prodConfig);
|