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

Fixing template.isProduction option #267

Merged
merged 1 commit into from Feb 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.ts
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