mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 09:53:24 +01:00
32 lines
803 B
JavaScript
32 lines
803 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',
|
|
"@mui/system": "@mui/system",
|
|
"@mui": "@mui",
|
|
"@mui/material": "@mui/material",
|
|
"@mui/material/esm": "@mui/material/esm",
|
|
'styled-components': 'styled-components',
|
|
'xml-formatter': 'xml-formatter',
|
|
'lodash-es': 'lodash-es',
|
|
},
|
|
/^@mui/,
|
|
/^lodash/
|
|
|
|
],
|
|
plugins: [new CleanWebpackPlugin()],
|
|
};
|
|
|
|
module.exports = merge(common, prodConfig);
|