0.1.0 • Published 1 year ago

vite-plugin-vue-template-tag v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vite-plugin-vue-template-tag

支持.vue文件根标签添加tag等属性,解析成新的子元素并包裹旧的子元素

EXAMPLE

  1. install
npm install -D vite-plugin-vue-template-tag
  1. config
// vite.config.ts
...
import templateTag from "vite-plugin-vue-template-tag";
...
  plugins: [
    vue(),
    templateTag()
  ],
...
  1. IN
<template tag="div" class="root" lang="html" @click="(ev) => {ev.preventDefault(); }" hide :isHidden="false">
  <h1>Hello World !</h1>

</template>
  1. OUT
<template>
<div class="root" @click="(ev) => { ev.preventDefault(); }" :isHidden="false" hide>
  <h1>Hello World !</h1>

</div>
</template>
0.1.0

1 year ago

0.1.0-3

1 year ago

0.1.0-2

1 year ago

0.1.0-1

1 year ago

0.0.5-0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.1-1

1 year ago

0.0.1-0

1 year ago