Vue brunch

Adds support to Brunch for pre-compiling single file Vue components.

Version: 2.0.3 Updated: 05/12/2018

By: theocodes License: MIT

Downloads Last 30 Days: 1.7k

Install

npm i vue-brunch
yarn add vue-brunch

Repository: https://github.com/theocodes/vue-brunch

CDNs

bundle.run: https://bundle.run/vue-brunch

jsDelivr: https://cdn.jsdelivr.net/npm/vue-brunch

unpkg: https://unpkg.com/vue-brunch

Vue Brunch

Adds support to Brunch for pre-compiling single file Vue components.

Installation

For 2.x support, use the master branch...

npm install vue-brunch --save-dev

And for 1.x support use the 1.x branch...

npm install vue-brunch#1.x --save-dev

Once the plugin has been installed, you are all set.

Usage

When ever you include a .vue file in your project, Brunch will automatically compile and write the converted module into your applications script path.

Extracting CSS

To extract the CSS into files, simply include to extractCSS option in your Brunch config like so...

plugins: {
    vue: {
      extractCSS: true,
      out: '../public/styles/components.css'
    }
}

License

This component is licensed under MIT, see license.md for details.

Donations

Categories: Vue js
Tags: vuebrunch