Rollup Plugin for Vue
As 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 components.
With rollup you can break your application into reusable modules.
Working on next version. See changes
Development milestones
Installation
Node and Rollup are required.
npm install --save-dev rollup-plugin-vue
Usage
import {rollup} from 'rollup';
import vue from 'rollup-plugin-vue';
rollup({
entry: 'index.js',
plugins: [vue()]
});
Below is how you can use it from the command line with Bublé.
Run rollup -c
and it will find the config.
import vue from 'rollup-plugin-vue'
import buble from 'rollup-plugin-buble'
export default {
entry: 'index.js',
plugins: [
vue(),
buble()
]
}
Examples
Options
css
vue({
css: 'bundle.scss',
css: function (styles, styleNodes) {
writeFileSync(cssPath, styles)
}
css: false,
css: null
})
compileTemplate
vue({
compileTemplate: true,
})
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ npm run test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email hi@znck.me instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.