Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
fix: Use template.isProduction option if set (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter authored and znck committed Feb 5, 2019
1 parent 3c9293c commit 911eabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 911eabc

Please sign in to comment.