Permalink
Browse files

fix: Use template.isProduction option if set (#267)

  • Loading branch information...
ianwalter authored and znck committed Feb 5, 2019
1 parent 3c9293c commit 911eabcf51e911f339ae129bfb24815b6d57df91
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/index.ts
@@ -118,7 +118,7 @@ export interface VuePluginOptions {
*/
export default function vue(opts: VuePluginOptions = {}): Plugin {
const isVue = createVueFilter(opts.include, opts.exclude)
const isProduction =
const isProduction = (opts.template && opts.template.isProduction) ||
process.env.NODE_ENV === 'production' || process.env.BUILD === 'production'

d('Version ' + version)

0 comments on commit 911eabc

Please sign in to comment.