1.8.2 • Published 7 years ago

generator-xp-vue v1.8.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

generator-xp-vue

a generator for vue project

Installation

  1. npm install -g yo && npm install -g generator-xp-vue
  2. yo xp-vue
  3. cd path-to-your-project
  4. yarn install(yarn is recommended)
  5. yarn run dll(MUST DO IT BEFORE RUN DEV)
  6. yarn run dev(dev server based on express, use port 2046)

Usage

  • 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)

Features

  • multiple platform: mobile or pc
  • use vue2.x + webpack2.x
  • use fetch for http request, async/aswait is recommended