Name: vue-cli-template-vant
Owner: ??
Description: null
Created: 2017-09-04 07:42:54.0
Updated: 2018-04-26 03:55:37.0
Pushed: 2018-03-19 13:20:59.0
Homepage: null
Size: 73
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
vue-cli template for vant;
m install -g vue-cli
e init youzan/vue-cli-template-vant my-project
my-project
m install
m run dev
If port 8080 is already in use on your machine you must change the port number in /config/index.js
. Otherwise npm run dev
will fail.
npm run dev
: first-in-class development experience.
Webpack + vue-loader
for single file Vue components.
State preserving hot-reload
State preserving compilation error overlay
Lint-on-save with ESLint
Source maps
npm run build
: Production ready build.
JavaScript minified with UglifyJS.
HTML minified with html-minifier.
CSS across all components extracted into a single file and minified with cssnano.
All static assets compiled with version hashes for efficient long-term caching, and a production index.html
is auto-generated with proper URLs to these generated assets.
Use npm run build --report
to build with bundle size analytics.
npm run unit
: Unit tests run in PhantomJS with Karma + Mocha + karma-webpack.
Supports ES2015+ in test files.
Supports all webpack loaders.
Easy mock injection.
npm run e2e
: End-to-end tests with Nightwatch.
Run tests in multiple browsers in parallel.
Works with one command out of the box: