vue-template-brunch

2.6.0 • Public • Published

Vue Template Brunch

Adds support to Brunch for PRE-compiling standalone vue templates (e.g. .html files) using vue-template-compiler

NOTE: This is NOT for single-file vue components where template, script, and styles are combined. For those you should use the vue-brunch plugin.

Installation

To install this plugin

npm install vue-template-brunch --save-dev

Usage

Whenever you require a .html file in your project, Brunch will assume that it is a vue template and compile it down to the js methods needed to render that template. You can then assign these attributes to your component.

var template = require('my-template.html');

var component = {

  render:          template.render,
  staticRenderFns: template.staticRenderFns,

  data: {
  },

  // ... etc

}

Related

License

MIT

Contact

If you have any ideas, feedback, requests or bug reports, you can reach me at jake@codeincomplete.com, or via my website: Code inComplete

/vue-template-brunch/

    Package Sidebar

    Install

    npm i vue-template-brunch

    Weekly Downloads

    4

    Version

    2.6.0

    License

    none

    Unpacked Size

    4.11 kB

    Total Files

    4

    Last publish

    Collaborators

    • jakesgordon