mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 03:33:48 +01:00
initial version
This commit is contained in:
parent
acb08b3ef1
commit
e075c67be6
@ -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()],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user