vue-template-brunch
v2.6.0
Published
Adds support to Brunch for pre-compiling standalone (NOT single-file) Vue templates (use vue-brunch for compiling single file vue components).
Downloads
6
Readme
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
Contact
If you have any ideas, feedback, requests or bug reports, you can reach me at [email protected], or via my website: Code inComplete