基于 webpack2、vue2的自动化工具,后端使用 express
npm install
开发模式
npm run dev
生成生产环境文件
npm run build
{
"name": "base",
"description": "base",
"version": "1.0.0",
"author": "Haovei <[email protected]>",
"private": true,
"scripts": {
// ...
},
//webpack 全局变量
"webpackDefine": {
"VERSION": "'v1.0.0'"
},
//开发模式 ['base','vue'], 默认为 base,
"buildRule": "base",
//开发端口
"devPort": 8080,
"cdnUrl": ""
}