UNPKG

1.77 kBMarkdownView Raw
1<div class="text-xs-center" align="center" style="margin: 20px">
2 <img src="https://raw.githubusercontent.com/vuejs/rollup-plugin-vue/master/docs/.vuepress/public/logo.png">
3</div>
4
5## Introduction
6
7As vue-loader is for webpack and vueify is for browserify, similarly its for rollup. As we know, webpack and browserify concat stuff and make it runnable in browser. Its difficult to share .vue components. **Now roll your [Vue](http://vuejs.org/) components.**
8
9With rollup you can break your application into reusable modules.
10
11<p align="center">
12 <a href="https://circleci.com/gh/vuejs/rollup-plugin-vue">
13 <img src="https://circleci.com/gh/vuejs/rollup-plugin-vue.svg?style=svg" alt="Build Status" />
14 </a>
15 <a href="https://coveralls.io/github/znck/rollup-plugin-vue?branch=master">
16 <img src="https://coveralls.io/repos/github/znck/rollup-plugin-vue/badge.svg?branch=master&style=flat-square" alt="Coverage Status" />
17 </a>
18</p>
19
20## Usage
21
22> This document applies to v4.0+. If you are looking for older versions, docs are [here](https://github.com/vuejs/rollup-plugin-vue/tree/2.2/docs)
23
24```js
25import VuePlugin from 'rollup-plugin-vue'
26
27export default {
28 entry: 'main.js',
29 plugins: [VuePlugin(/* VuePluginOptions */)]
30}
31```
32
33## Security
34
35If you discover any security related issues, please email hi@znck.me instead of using the issue tracker.
36
37## Credits
38
39* [Rahul Kadyan](https://github.com/znck)
40* [Thomas Ghysels](https://github.com/thgh)
41* [Eduardo San Martin Morote](https://github.com/posva)
42* [All Contributors][link-contributors]
43
44## License
45
46The MIT License (MIT). Please see [License File](http://znck.me/rollup-plugin-vue/license) for more information.
47
48[link-contributors]: https://github.com/znck/rollup-plugin-vue/graphs/contributors