Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 605b34e

Browse files
Dimitar Tachevsis0k0
Dimitar Tachev
authored andcommitted
fix: read the hmr option from the preview command (#658)
1 parent f6f4e05 commit 605b34e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/before-preview-sync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
const { runWebpackCompiler } = require("./compiler");
22

3-
module.exports = function($logger, $liveSyncService, hookArgs) {
3+
module.exports = function($logger, $liveSyncService, $options, hookArgs) {
44
const { config } = hookArgs;
55
const bundle = config && config.appFilesUpdaterOptions && config.appFilesUpdaterOptions.bundle;
66
if (bundle) {
77
const env = config.env || {};
8+
env.hmr = !!$options.hmr;
89
const platform = config.platform;
910
const release = config && config.appFilesUpdaterOptions && config.appFilesUpdaterOptions.release;
1011
const compilerConfig = {

0 commit comments

Comments
 (0)