Socket
Book a DemoInstallSign in
Socket

vue-template-brunch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-template-brunch

Adds support to Brunch for pre-compiling standalone (NOT single-file) Vue templates (use vue-brunch for compiling single file vue components).

2.6.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

}

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

Keywords

vue

FAQs

Package last updated on 05 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.