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:
parent
dba24dac9d
commit
d831e6d39c
|
@ -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 || '')
|
||||
|
|
Loading…
Reference in a new issue