Vite打包版本控制以及全局环境参数配置功能设置全局变量。 构建时依据环境,设置当前环境对应的全局参数。 开发环境下,增强代理配置功能。可实现不同接口走不同的代理,也可过滤指定接口。 构建后所有的静态资源会被打包到一个以当前时间为名称的文件夹内 安装 npm i vite-plugin-version-env -S配置...
vite打包静态资源版本控制,不同环境的全局参数配置。增强代理功能,可实现不同接口走不同的代理,也可过滤指定接口 - vite-plugin-version-env/tsconfig.json at master · luna-lee/vite-plugin-version-env
yarn add @pluve/vite-plugin-version-output -D 使用 import{defineConfig}from'vite';importversionOutputfrom'@pluve/vite-plugin-version-output';exportdefaultdefineConfig({plugins:[versionOutput({version:'date',mainFileName:'index.html',mainFilePageTitle:'哥伦布',mainFileTheme:{colorPrimary:'#00b578...
import { updateVersion } from "vite-plugin-update-version"; import { fileURLToPath } from 'url' const __filenameNew = fileURLToPath(import.meta.url) const __dirnameNew = path.dirname(__filenameNew) plugins: [ /** \* @description: 更新package.json的版本信息, apply: 'build'打包时才...
vite打包静态资源版本控制,不同环境的全局参数配置。增强代理功能,可实现不同接口走不同的代理,也可过滤指定接口 - vite-plugin-version-env/pnpm-lock.yaml at master · luna-lee/vite-plugin-version-env
{ "name": "vite-plugin-version-env-dev", "version": "1.0.0", "description": "", "scripts": { "build": "pnpm --filter 'vite-plugin-version-env' run build && npm run copy-md", "test": "vitest", "copy-md": "cp README.md packages/core" }, "keywords": [], "author": ...
npm i vite-plugin-minverversion --save-dev Usage // vite.config.jsimportminverVersionfrom'vite-plugin-minverversion'exportdefault{plugins:[minverVersion()]} TypeScript support // vite-env.d.ts/// <reference types="vite/client" />declareconstMINVER_VERSION:string; ...
vite plugin to load package version into env. Latest version: 1.1.0, last published: a year ago. Start using vite-plugin-package-version in your project by running `npm i vite-plugin-package-version`. There are 9 other projects in the npm registry using
Breadcrumbs vite-plugin-version-mark / commitlint.config.ts Latest commit ZhongxuYang chore: init eslint, lint-stagedAug 30, 2024 3e1798a· Aug 30, 2024 HistoryHistory File metadata and controls Code Blame 21 lines (21 loc) · 320 Bytes Raw export default { extends: ['@commitlint/config...
Automatically use `package version` / `git commit` / `custom` to be inserted into your project as a unique identifier for the project version. - vite-plugin-version-mark/CHANGELOG.md at e85f063d9abf82a53bef02b09f93f060a07e34e8 · censujiang/vite-plugin-v