A simple rollup and vue-loader setup for quick prototyping.
This is a project template for vue-cli.
$ npm install -g vue-cli
$ vue init dangvanthanh/vue-rollup-boilerplate my-project
$ cd my-project
$ npm install
$ npm run serve
CLI | DESCRIPTION |
---|---|
npm run serve |
Rollup + vue-loader with hot-reload |
npm run build |
Production build with CSS/JS minification |
For more information see the docs for vue-loader.
You will likely need to do some tuning to suit your own needs:
- Install additional libraries that you need such as vue-router, vue-resource, vuex, etc...
- A little development server with live reload capability with rollup-plugin-serve and rollup-plugin-livereload.
You can folk this repo to create own boilerplate, and use it with vue-cli
vue init username/repo my-project