We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8a85b commit 01990d0Copy full SHA for 01990d0
lib/loaders/templateLoader.js
@@ -15,7 +15,7 @@ module.exports = function (source) {
15
const options = loaderUtils.getOptions(loaderContext) || {}
16
const { id } = query
17
const isServer = loaderContext.target === 'node'
18
- const isProduction = loaderContext.minimize || process.env.NODE_ENV === 'production'
+ const isProduction = options.productionMode || loaderContext.minimize || process.env.NODE_ENV === 'production'
19
const isFunctional = query.functional
20
21
// allow using custom compiler via options
0 commit comments