5.0.1 • Published 2 years ago

rollup-plugin-ue2 v5.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rollup-plugin-vue2

Roll Vue 2 SFCs with Rollup.

Install

npm i rollup-plugin-ue2 --save-dev

Introduction

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.

Usage

This document applies to v4.0+. If you are looking for older versions, docs are here

import commonjs from 'rollup-plugin-commonjs' 
import VuePlugin from 'rollup-plugin-ue2'

export default {
  entry: 'main.js',
  plugins: [
    commonjs(),
    VuePlugin(/* VuePluginOptions */)
  ]
}

See available options for VuePluginOptions.