Skip to content

Commit

Permalink
fix(templateLoder): honor options.productionMode (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored and yyx990803 committed Jan 27, 2019
1 parent bb8a85b commit 01990d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loaders/templateLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (source) {
const options = loaderUtils.getOptions(loaderContext) || {}
const { id } = query
const isServer = loaderContext.target === 'node'
const isProduction = loaderContext.minimize || process.env.NODE_ENV === 'production'
const isProduction = options.productionMode || loaderContext.minimize || process.env.NODE_ENV === 'production'
const isFunctional = query.functional

// allow using custom compiler via options
Expand Down

0 comments on commit 01990d0

Please sign in to comment.