A Vue.js project
- github 地址:https://github.com/jaywcjlove/webpack-api-mocker
- Webpack最简单的方式Mock API
- 在webpack-dev-server内添加mock server
- 使用 vue-cli 3.x 拉取 2.x 模板 (旧版本) 创建的项目
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.