Skip to content

lijianzhang/vite-plugin-vue2

 
 

Repository files navigation

vite-plugin-vue2

Usage

  • run yarn add vite-plugin-vue2 --dev
  • add the plugin into vite.config.js
// vite.config.js
const { createVuePlugin } = require('vite-plugin-vue2')

module.exports = {
  plugins: [createVuePlugin(/*options*/)],
}

vueTemplateOptions

Type: Object
Default: null

The options for @vue/component-compiler-utils.

jsx

Type: Boolean
Default: false

The options for jsx transform.

jsxOptions

Type: Object

The options for @vue/babel-preset-jsx.

Todo

  • SSR Build
  • Sourcemap

About

Vue2 plugin for Vite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.1%
  • Vue 6.6%
  • Other 1.3%