vite-plugin-autobase
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

vite-plugin-autobase

创建一个Vite插件,自动设置基础路径(base)和环境变量。

在 Github Pages 项目中,编译的文件需要加项目repo的前缀

example

import { defineConfig } from 'vite';
import autobase from 'vite-plugin-autobase';

export default defineConfig({
  plugins: [
    autobase()
  ]
});

/vite-plugin-autobase/

    Package Sidebar

    Install

    npm i vite-plugin-autobase

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    4.39 kB

    Total Files

    6

    Last publish

    Collaborators

    • hank.liu