From 911eabcf51e911f339ae129bfb24815b6d57df91 Mon Sep 17 00:00:00 2001 From: Ian Walter Date: Mon, 4 Feb 2019 21:47:43 -0500 Subject: [PATCH] fix: Use template.isProduction option if set (#267) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ac200df..040ddb5 100644 --- a/src/index.ts +++ b/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)