Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 963 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 963 Bytes

webpack_api_mocker_demo

A Vue.js project

webpack-api-mocker 的使用

  1. github 地址:https://github.com/jaywcjlove/webpack-api-mocker
  2. Webpack最简单的方式Mock API
  3. 在webpack-dev-server内添加mock server

Build Setup

# 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.