Commit 01990d0f authored by Pooya Parsa's avatar Pooya Parsa Committed by Evan You

fix(templateLoder): honor options.productionMode (#1409)

parent bb8a85b9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment