initial version

This commit is contained in:
Gustavo Fuhr 2022-12-14 17:02:35 -03:00
parent acb08b3ef1
commit e075c67be6

View File

@ -2,13 +2,6 @@ const { merge } = require('webpack-merge');
const common = require('./webpack.common'); const common = require('./webpack.common');
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin');
// '@emotion/styled': '@emotion/styled',
// '@emotion/react': '@emotion/react',
// "@mui/system": "@mui/system",
// "@mui": "@mui",
// "@mui/material": "@mui/material",
// "@mui/material/esm": "@mui/material/esm",
const prodConfig = { const prodConfig = {
optimization: { optimization: {
usedExports: true, usedExports: true,
@ -18,14 +11,19 @@ const prodConfig = {
'react': 'react', 'react': 'react',
'react-dom': 'react-dom', 'react-dom': 'react-dom',
'react-intl': 'react-intl', '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', 'styled-components': 'styled-components',
'xml-formatter': 'xml-formatter', 'xml-formatter': 'xml-formatter',
'lodash-es': 'lodash-es', 'lodash-es': 'lodash-es',
}, },
/^@mui\.*/, /^@mui/,
/^@emotion\.*/,
/^lodash/ /^lodash/
], ],
plugins: [new CleanWebpackPlugin()], plugins: [new CleanWebpackPlugin()],
}; };