From 582f9c40e8da703d6fcd61a646a152710040190c Mon Sep 17 00:00:00 2001 From: Ian Walter Date: Mon, 4 Feb 2019 16:16:13 -0500 Subject: [PATCH] Fixing template.isProduction option --- 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)