2022-01-25 19:10:40 +01:00
|
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const common = require('./webpack.common');
|
|
|
|
|
|
|
|
const prodConfig = {
|
|
|
|
optimization: {
|
|
|
|
usedExports: true,
|
|
|
|
minimize: true,
|
|
|
|
},
|
2022-11-12 16:17:06 +01:00
|
|
|
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-12 16:17:06 +01:00
|
|
|
"@mui/system": "@mui/system",
|
|
|
|
"@mui": "@mui",
|
|
|
|
"@mui/material": "@mui/material",
|
|
|
|
"@mui/material/esm": "@mui/material/esm",
|
2022-11-03 02:33:28 +01:00
|
|
|
'styled-components': 'styled-components',
|
2022-11-12 16:17:06 +01:00
|
|
|
'xml-formatter': 'xml-formatter',
|
|
|
|
'lodash-es': 'lodash-es',
|
2022-01-25 19:10:40 +01:00
|
|
|
},
|
2022-11-12 16:17:06 +01:00
|
|
|
/^@mui/,
|
|
|
|
/^lodash/
|
|
|
|
|
|
|
|
],
|
2022-01-25 19:10:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = merge(common, prodConfig);
|