1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Webpack's ModuleConcatenationPlugin plugin doesn't work well with HMR. (#2584)

So, now we only use it for production.
This commit is contained in:
Arunoda Susiripala 2017-07-17 22:16:39 +05:30 committed by GitHub
parent dba24dac9d
commit d831e6d39c

View file

@ -131,8 +131,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
}),
new PagesPlugin(),
new DynamicChunksPlugin(),
new CaseSensitivePathPlugin(),
new webpack.optimize.ModuleConcatenationPlugin()
new CaseSensitivePathPlugin()
]
if (dev) {
@ -156,6 +155,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
sourceMap: false
})
)
plugins.push(new webpack.optimize.ModuleConcatenationPlugin())
}
const nodePathList = (process.env.NODE_PATH || '')