组件模版
This is a project template for vue-cli.
$ npm install -g vue-cli
$ vue init sadne/vue-component-template my-project
$ cd my-project
$ npm install
$ npm run dev
-
npm run dev
: Webpack +vue-loader
with proper config for source maps & hot-reload. -
npm prepublish
: 使用 node rollup.build.js 进行文件编译.
For detailed explanation on how things work, consult the docs for vue-loader. Also check out the breaking changes in vue-loader@9.0.0.
You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init sadne/vue-component-template my-project