import{_ as s,o,c as e,R as a}from"./chunks/framework.6241eaf2.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/vue3/env.md","filePath":"guide/vue3/env.md","lastUpdated":1731315864000}'),n={name:"guide/vue3/env.md"},p=a(`
package.json
里的 scripts
配置 dev
dev:test
dev:prod
,通过 --mode xxx
来执行不同环境
yarn dev
启动本地环境参数 , 执行 development
yarn dev:test
启动测试环境参数 , 执行 test
yarn dev:prod
启动正式环境参数 , 执行 prod
"scripts": {
"dev": "vite",
"dev:test": "vite --mode test",
"dev:prod": "vite --mode production",
}