@fighting-design/vite-plugin-vue-fighting-setup-name

0.1.0 • Public • Published

@fighting-design/vite-plugin-vue-fighting-setup-name

中文 | 英文

📢 介绍

Fighting Design 内部使用的 vite 插件,用于设置组件名。

⚒️ 安装

# pnpm
pnpm add --save-dev @fighting-design/vite-plugin-vue-fighting-setup-name

# npm
npm i --save-dev @fighting-design/vite-plugin-vue-fighting-setup-name

# yarn
yarn --save-dev add @fighting-design/vite-plugin-vue-fighting-setup-name

💡 使用

vite.config.ts 中引入下面内容

import vue from '@vitejs/plugin-vue'
import FightingSetupNamePlugin from '@fighting-design/vite-plugin-vue-fighting-setup-name'
import type { UserConfigExport } from 'vite'

export default (): UserConfigExport => {
  return {
    base: './',
    plugins: [vue(), FightingSetupNamePlugin()]
  }
}

Package Sidebar

Install

npm i @fighting-design/vite-plugin-vue-fighting-setup-name

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

5 kB

Total Files

6

Last publish

Collaborators

  • tyh2001