h5-template icon indicating copy to clipboard operation
h5-template copied to clipboard

Quickly start a H5 project.

h5-template

Quickly start a H5 project.

instruction

available config:

  • base project structure
  • use lib-flexible for adaptable layout
  • bootstrap postcss plugins in webpack
  • mint-ui for default UI components, provide component register
  • base axios config
  • base vuex config
  • base vue-router config, use webpack dynamic import for lazyloading routers
  • provide router hook for setting document title after router changes
  • register global mixins for localStorage, sessionStorage and Baidu analysis
  • add trailing comma rules in Eslint config
  • add filter register
  • use fastclick to eliminating the 300ms delay
  • add some util functions

start

  • $ cd project_path
  • $ npm i
  • $ npm run dev

Then your web page will run on http://localhost:8212