{
"name": "dome", //项目名称
"version": "0.1.0", //版本号
"private": true, //允许版本自动升级标识
"scripts": { //执行命令
"serve": "vue-cli-service serve --open",
/** vue-cli-service serve [options] [entry] 编译执行
* options:可选参数集合
* --open 在服务器启动时打开浏览器
* --copy 在服务器启动时将 URL 复制到剪切版
* --mode 指定环境模式 (默认值:development)
* --host 指定 host (默认值:0.0.0.0)
* --port 指定 port (默认值:8080)
* --https 使用 https (默认值:false)
* entry:入口文件 vuecli已处理,可以再项目中搜索base.js查看,默认main.js文件
*/
"build": "vue-cli-service build --modern", //--modern面向现代浏览器主要兼容modle语法
/** vue-cli-service build [options] [entry|pattern] 编译打包
* options:可选参数集合
* --mode 指定环境模式 (默认值:production)
* --dest 指定输出目录 (默认值:dist)
* --modern 面向现代浏览器带自动回退
vuecli package.js详细解析
最新推荐文章于 2023-10-06 20:07:43 发布