Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
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

Description

@meteorlxy

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions