mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
webpack3: Scope Hoisting
This commit is contained in:
parent
4f9684e117
commit
8378a772e5
@ -1,11 +1,11 @@
|
|||||||
import ExtractTextPlugin from 'extract-text-webpack-plugin'
|
import ExtractTextPlugin from "extract-text-webpack-plugin";
|
||||||
import { defaults, cloneDeep } from 'lodash'
|
import { cloneDeep, defaults } from "lodash";
|
||||||
import { join, resolve } from 'path'
|
import { join, resolve } from "path";
|
||||||
import webpack from 'webpack'
|
import webpack from "webpack";
|
||||||
import { isUrl, urlJoin } from 'utils'
|
import { isUrl, urlJoin } from "utils";
|
||||||
import autoprefixer from 'autoprefixer'
|
import autoprefixer from "autoprefixer";
|
||||||
import vueLoaderConfig from './vue-loader.config'
|
import vueLoaderConfig from "./vue-loader.config";
|
||||||
import { styleLoader, extractStyles } from './helpers'
|
import { extractStyles, styleLoader } from "./helpers";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -136,6 +136,11 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
|
|||||||
minimize: true
|
minimize: true
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Scope Hoisting
|
||||||
|
config.plugins.push(
|
||||||
|
new webpack.optimize.ModuleConcatenationPlugin()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clone deep avoid leaking config between Client and Server
|
// Clone deep avoid leaking config between Client and Server
|
||||||
|
Loading…
Reference in New Issue
Block a user