A full-featured Webpack + multi-page setup with hot reload, linting, testing & css extraction.
A full-featured Webpack + multi-page setup with hot reload, linting, testing & css extraction. test
This is a project template for vue-cli. It is recommended to use npm 3+ for a more efficient dependency tree.
$ npm install -g vue-cli
$ vue init QC-L/webpack-multi-page-template my-project
$ cd my-project
$ npm install
$ npm 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.
npm run build
: Production ready build.
index.html
is auto-generated with proper URLs to these generated assets.npm run build --report
to build with bundle size analytics.npm run unit
: Unit tests run in PhantomJS with Karma + Mocha + karma-webpack.
npm run e2e
: End-to-end tests with Nightwatch.
You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init username/repo my-project