Skip to content

Commit a9c0ae3

Browse files
committed
use webpack/hot/dev-server to full-reload on HMR errors
1 parent 165431b commit a9c0ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/build/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
1313
const pages = await glob('pages/**/*.js', { cwd: dir })
1414

1515
const entry = {}
16-
const defaultEntries = hotReload ? ['webpack/hot/only-dev-server'] : []
16+
const defaultEntries = hotReload ? ['webpack/hot/dev-server'] : []
1717
for (const p of pages) {
1818
entry[join('bundles', p)] = defaultEntries.concat(['./' + p])
1919
}

0 commit comments

Comments
 (0)