- Notifications
You must be signed in to change notification settings - Fork84
underfin/vite-plugin-vue2
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
⚠️ With the release ofVue 2.7, Vite now provides the official Vue 2 plugin@vitejs/plugin-vue2. Thereby this plugin will only support Vue 2.6 or earlier.This project is reached End of Life by the end of 2022.
npm install vite-plugin-vue2 -D
// vite.config.jsimport{createVuePlugin}from'vite-plugin-vue2'exportdefault{plugins:[createVuePlugin(/* options */)],}
Type:Object
Default:{ compilerOptions :{ whitespace: 'condense' } }
Note { whitespace: 'condense' } behavior
A whitespace-only text node between element tags is removed if it contains new lines. Otherwise, it is condensed into a single space.
Consecutive whitespaces inside a non-whitespace-only text node are condensed into a single space.
Using condense mode will result in smaller compiled code size and slightly improved performance. However, it will produce minor visual layout differences compared to plain HTML in certain cases,if you want to keep whitespace behavior, please set{ whitespace: 'preserve' }
The options for@vue/component-compiler-utils.
Type:Boolean
Default:false
The options for jsx transform.
Type:Object
The options for@vue/babel-preset-jsx.
Type:String
The options for esbuild to transform script code
- SSR Build
- Sourcemap
About
Vue2 plugin for Vite
Resources
Uh oh!
There was an error while loading.Please reload this page.