Skip to content

Commit 9366d81

Browse files
committed
small tweak
1 parent 1d63e9e commit 9366d81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/template-compiler.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ module.exports = function (html) {
8484
}
8585
}
8686
// hot-reload
87-
if (!isServer &&
88-
!this.minimize &&
89-
process.env.NODE_ENV !== 'production') {
87+
if (!isServer && !isProduction) {
9088
code +=
9189
'\nif (module.hot) {\n' +
9290
' module.hot.accept()\n' +

0 commit comments

Comments
 (0)