mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix WatchPagesPlugin to use webpack/hot/dev-server
This commit is contained in:
parent
1bf98eaa6b
commit
42725614d9
|
@ -26,7 +26,7 @@ export default class WatchPagesPlugin {
|
|||
const name = getEntryName(f)
|
||||
if (compiler.hasEntry(name)) return
|
||||
|
||||
const entries = ['webpack/hot/only-dev-server', f]
|
||||
const entries = ['webpack/hot/dev-server', f]
|
||||
compiler.addEntry(entries, name)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue