@52css/vite-my-git-plugin

1.0.23 • Public • Published

git

使用

vite.config.js 增加

import { MyGitPlugin } from '@52css/my-git-plugin';

export default defineConfig({
  plugins: [vue(), MyGitPlugin()],
  ...
});

控制台访问

console.log(__MY_GIT_PLUGIN__) // 显示相应的git信息

如果需要别名

vite.config.js 增加

import { MyGitPlugin } from '@52css/my-git-plugin';

export default defineConfig({
  plugins: [vue(), MyGitPlugin('$abc')],
  ...
});

控制台访问

console.log($abc) // 显示相应的git信息

Readme

Keywords

none

Package Sidebar

Install

npm i @52css/vite-my-git-plugin

Weekly Downloads

23

Version

1.0.23

License

ISC

Unpacked Size

4.52 kB

Total Files

3

Last publish

Collaborators

  • 52css