mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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 { defaults, cloneDeep } from 'lodash'
|
||||
import { join, resolve } from 'path'
|
||||
import webpack from 'webpack'
|
||||
import { isUrl, urlJoin } from 'utils'
|
||||
import autoprefixer from 'autoprefixer'
|
||||
import vueLoaderConfig from './vue-loader.config'
|
||||
import { styleLoader, extractStyles } from './helpers'
|
||||
import ExtractTextPlugin from "extract-text-webpack-plugin";
|
||||
import { cloneDeep, defaults } from "lodash";
|
||||
import { join, resolve } from "path";
|
||||
import webpack from "webpack";
|
||||
import { isUrl, urlJoin } from "utils";
|
||||
import autoprefixer from "autoprefixer";
|
||||
import vueLoaderConfig from "./vue-loader.config";
|
||||
import { extractStyles, styleLoader } from "./helpers";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -136,6 +136,11 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
|
||||
minimize: true
|
||||
})
|
||||
)
|
||||
|
||||
// Scope Hoisting
|
||||
config.plugins.push(
|
||||
new webpack.optimize.ModuleConcatenationPlugin()
|
||||
)
|
||||
}
|
||||
|
||||
// Clone deep avoid leaking config between Client and Server
|
||||
|
Loading…
Reference in New Issue
Block a user