Skip to content

Commit 27e9fe3

Browse files
committed
fix: hmr not working
1 parent edb2e66 commit 27e9fe3

3 files changed

Lines changed: 14 additions & 380 deletions

File tree

config/webpack/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fs.readdirSync('node_modules')
1212
});
1313

1414
var config = {
15-
mode: 'production',
15+
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
1616
externals: nodeModules,
1717
target: 'node',
1818

0 commit comments

Comments
 (0)