Vue模板,用于作为PC项目的基础配置项目。
# install dependencies
npm install
# serve with hot reload at localhost:8081
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
见webpack配置文件index.js中的dev.port
,默认值为8081
;
见:package.json 中的dependencies
。
新增依赖需要跟负责人确认之后,才可安装
- 提交代码前,必须保证符合ESLint代码规范
config/index.js
中config.dev.useEslint
的值
true
为开启Eslint代码检查false
为关闭Eslint代码检查
config/dev.env.js
、config/prod.env.js
中process.env.MOCK
的值
true
为开启Mockfalse
为关闭Mock
- 2.0.2
vue
: "^2.6.10" => "^2.6.11"vue-template-compiler
: "^2.6.10" => "^2.6.11"- 添加
@babel/runtime
插件 - 添加
babel/runtime-corejs2
插件 uglifyjs-webpack-plugin
: "^2.2.0" => "^1.0.0-rc.0",解决打包后报错问题
vue,react 配置 commitlint 和 eslint 钩子 webpack+vue+Eslint+husky+lint-staged 统一项目编码规范 升级到Babel 7