Commit 78d4f269 authored by gxkai's avatar gxkai

fix: 取消压缩

parent 5a6f8b1a
const nxWebpack = require('@nrwl/react/plugins/webpack') const nxWebpack = require('@nrwl/react/plugins/webpack')
const WebpackBar = require('webpackbar') const WebpackBar = require('webpackbar')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = config => { module.exports = config => {
const nxWebpackConfig = nxWebpack(config) const nxWebpackConfig = nxWebpack(config)
const webpackConfig = { const webpackConfig = {
...@@ -26,7 +27,15 @@ module.exports = config => { ...@@ -26,7 +27,15 @@ module.exports = config => {
// deleteOriginalAssets: false // 删除原文件true=删 // deleteOriginalAssets: false // 删除原文件true=删
// })) // }))
return { return {
...webpackConfig ...webpackConfig,
optimization: {
minimizer: [
new TerserPlugin({
cache: true,
parallel: true
})
]
}
} }
} else { } else {
webpackConfig.devServer = { webpackConfig.devServer = {
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
"with": "apps/remix-ide/src/environments/environment.prod.js" "with": "apps/remix-ide/src/environments/environment.prod.js"
} }
], ],
"optimization": true, "optimization": false,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true, "extractCss": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment