mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
remove build.scopeHoisting option
ModuleConcatenationPlugin enabled in production. Configurable with optimization.concatenateModules
This commit is contained in:
parent
bb0585c84d
commit
eae92d7275
@ -148,11 +148,6 @@ module.exports = function webpackClientConfig() {
|
||||
// Production specific config
|
||||
// --------------------------------------
|
||||
if (!this.options.dev) {
|
||||
// Scope Hoisting
|
||||
if (this.options.build.scopeHoisting === true) {
|
||||
config.plugins.push(new webpack.optimize.ModuleConcatenationPlugin())
|
||||
}
|
||||
|
||||
// Chunks size limit
|
||||
// https://webpack.js.org/plugins/aggressive-splitting-plugin/
|
||||
if (this.options.build.maxChunkSize) {
|
||||
|
@ -188,7 +188,6 @@ Options.defaults = {
|
||||
analyze: false,
|
||||
profile: process.argv.includes('--profile'),
|
||||
dll: false,
|
||||
scopeHoisting: false,
|
||||
maxChunkSize: false,
|
||||
extractCSS: false,
|
||||
cssSourceMap: undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user