mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
disable ModuleConcatenationPlugin
This commit is contained in:
parent
32ef99a96c
commit
699b3f6230
@ -5,7 +5,6 @@ import HTMLPlugin from 'html-webpack-plugin'
|
||||
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'
|
||||
import ProgressBarPlugin from 'progress-bar-webpack-plugin'
|
||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
|
||||
// import MinifyPlugin from 'babel-minify-webpack-plugin'
|
||||
import { resolve } from 'path'
|
||||
import { existsSync } from 'fs'
|
||||
import Debug from 'debug'
|
||||
@ -191,17 +190,13 @@ export default function webpackClientConfig () {
|
||||
if (!this.options.dev) {
|
||||
// Scope Hoisting
|
||||
config.plugins.push(
|
||||
new webpack.optimize.ModuleConcatenationPlugin()
|
||||
// new webpack.optimize.ModuleConcatenationPlugin()
|
||||
)
|
||||
|
||||
// https://webpack.js.org/plugins/hashed-module-ids-plugin
|
||||
config.plugins.push(new webpack.HashedModuleIdsPlugin())
|
||||
|
||||
// Minify JS
|
||||
|
||||
// https://github.com/webpack-contrib/babel-minify-webpack-plugin
|
||||
// config.plugins.push(new MinifyPlugin())
|
||||
|
||||
// https://github.com/webpack-contrib/uglifyjs-webpack-plugin
|
||||
config.plugins.push(
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
|
Loading…
Reference in New Issue
Block a user