An example of bundling Vue library with Rollup.
git clone https://github.com/gluons/rollup-vue-example.git
cd rollup-vue-example
yarnyarn build- Bundle
.vuefile (byrollup-plugin-vue) - 3 JavaScript bundles (with source map):
- CommonJS
- ES Module
- Browser IIFE
- Minified (by
rollup-plugin-babel-minify) - Unminified
- Minified (by
- Final CSS file:
- PostCSS support (by
rollup-plugin-postcss) - Autoprefixer
- Minified (by
postcss-csso)
- PostCSS support (by
yarn dev- Development Server with live reload by
rollup-plugin-serveandrollup-plugin-livereload.