Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

For TemplateOptions, is there a way to set isProduction without setting compiler and compilerOptions? #81

Open
meteorlxy opened this issue Dec 25, 2018 · 0 comments

Comments

@meteorlxy
Copy link
Member

meteorlxy commented Dec 25, 2018

As defined in the types file:

interface TemplateOptions {
  compiler: VueTemplateCompiler
  compilerOptions: VueTemplateCompilerOptions
  preprocessOptions?: any
  transformAssetUrls?: AssetURLOptions | boolean
  transpileOptions?: any
  isProduction?: boolean
  optimizeSSR?: boolean
}

compiler and compilerOptions is required, so if I want to set isProduction to true, I have to set the compiler and compilerOptions together, which I don't want to change at all.

Is there a way to set isProduction without setting compiler and compilerOptions?

(Without setting process.env.NODE_ENV of course.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant