We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 635560f commit 4acd553Copy full SHA for 4acd553
lib/template-compiler.js
@@ -29,6 +29,7 @@ function rewrite (attr) {
29
30
module.exports = function (html) {
31
this.cacheable()
32
+ var isServer = this.options.target === 'node'
33
var compiled = compiler.compile(html, options)
34
var code
35
if (compiled.errors.length) {
@@ -44,7 +45,8 @@ module.exports = function (html) {
44
45
'}'
46
}
47
// hot-reload
- if (!this.minimize &&
48
+ if (!isServer &&
49
+ !this.minimize &&
50
process.env.NODE_ENV !== 'production') {
51
var moduleId = loaderUtils.parseQuery(this.query).id
52
code +=
0 commit comments