1.0.6 • Published 2 years ago
vite-plugin-define v1.0.6
vite-plugin-define
介绍
vite-plugin-define
安装教程
# 通过 npm 安装
npm i vite-plugin-define -D
# 通过 yarn 安装
yarn add vite-plugin-define --dev
module.exports = defineConfig({
// you config
server: {
https: true
},
plugins: [
ssl(),
videDefine({
debug: false, // 关闭 debug 控制台
ENVNAME: "BUILD_ENV" // 全局修改的环境变量名称
})
]
});