Commit 78d4f269 authored by gxkai's avatar gxkai

fix: 取消压缩

parent 5a6f8b1a
const nxWebpack = require('@nrwl/react/plugins/webpack')
const WebpackBar = require('webpackbar')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = config => {
const nxWebpackConfig = nxWebpack(config)
const webpackConfig = {
......@@ -26,7 +27,15 @@ module.exports = config => {
// deleteOriginalAssets: false // 删除原文件true=删
// }))
return {
...webpackConfig
...webpackConfig,
optimization: {
minimizer: [
new TerserPlugin({
cache: true,
parallel: true
})
]
}
}
} else {
webpackConfig.devServer = {
......
......@@ -99,7 +99,7 @@
"with": "apps/remix-ide/src/environments/environment.prod.js"
}
],
"optimization": true,
"optimization": false,
"outputHashing": "all",
"sourceMap": false,
"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