mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +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
|
// Production specific config
|
||||||
// --------------------------------------
|
// --------------------------------------
|
||||||
if (!this.options.dev) {
|
if (!this.options.dev) {
|
||||||
// Scope Hoisting
|
|
||||||
if (this.options.build.scopeHoisting === true) {
|
|
||||||
config.plugins.push(new webpack.optimize.ModuleConcatenationPlugin())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Chunks size limit
|
// Chunks size limit
|
||||||
// https://webpack.js.org/plugins/aggressive-splitting-plugin/
|
// https://webpack.js.org/plugins/aggressive-splitting-plugin/
|
||||||
if (this.options.build.maxChunkSize) {
|
if (this.options.build.maxChunkSize) {
|
||||||
|
@ -188,7 +188,6 @@ Options.defaults = {
|
|||||||
analyze: false,
|
analyze: false,
|
||||||
profile: process.argv.includes('--profile'),
|
profile: process.argv.includes('--profile'),
|
||||||
dll: false,
|
dll: false,
|
||||||
scopeHoisting: false,
|
|
||||||
maxChunkSize: false,
|
maxChunkSize: false,
|
||||||
extractCSS: false,
|
extractCSS: false,
|
||||||
cssSourceMap: undefined,
|
cssSourceMap: undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user