A full-featured Webpack setup with hot-reload, lint-on-save, unit testing & css extraction.
- For this template: common questions specific to this template are answered and each part is described in greater detail
- For Vue 2.0: general information about how to work with Vue, not specific to this template
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 webpack my-project
$ cd my-project
$ npm install
$ npm run dev
This will scaffold the project using the master
branch. If you wish to use the latest version of the webpack template, do the following instead:
$ vue init webpack#develop my-project
The development server will run on port 8080 by default. If that port is already in use on your machine, the next free port will be used.
You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init everlose/webpack my-project