a generator for vue project
- npm install -g yo && npm install -g generator-xiaoping-vue
- yo xiaoping-vue
- cd path-to-your-project
- yarn install(yarn is recommended)
- yarn run dll(MUST DO IT BEFORE RUN DEV)
- yarn run dev(dev server based on express, use port 2046)
- yarn run dll(if you add a dependency, please edit config/dll.list.js)
- yarn run imgmin(compress your images offline, support jpg/png/gif/svg)
- yarn run dev(for development)
- yarn run build(build for production)
- multiple platform: mobile or pc
- use vue2.x + webpack2.x
- use fetch for http request, async/aswait is recommended