0.1.10 • Published 6 months ago

easycube-inject-static-resources-plugin v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

easycube-inject-static-resources-plugin

一个 EasyCube 专用的 vite 插件,用于在打包时将静态资源注入 index.html

安装:

$ pnpm i -D easycube-inject-static-resources-plugin

使用:

// vite.config.ts
import injectStaticResourcesPlugin from 'easycube-inject-static-resources-plugin'
import { defineConfig, UserConfig, ConfigEnv } from 'vite'

// https://vitejs.dev/config/
export default defineConfig(({ command }: ConfigEnv): UserConfig => {
  return {
		// ...
    plugins: [injectStaticResourcesPlugin(command === 'build')],
		// ...
  }
})

更新记录

0.1.10: 增加配置项参数;

0.1.10

6 months ago

0.1.9

7 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago