2.0.0-0 • Published 7 years ago
broccoli-livescript v2.0.0-0
broccoli-livescript
A Broccoli plugin to compile LiveScript
Installation
npm install --save-dev broccoli-livescriptAPI
const liveScript = require('broccoli-livescript');liveScript(tree , options)
tree: string or Object (broccoli tree)
options: Object (directly passed to LiveScript options)
Return: Function
options.bare
Type: boolean
Default: false
Compile without the top-level function wrapper.
options.header
Type: boolean
Default: true
false removes "Generated by" header.
//Brocfile.js
const liveScript = require('broccoli-livescript');
module.exports = liveScript('scripts', {
bare: true,
header: false
});License
Copyright (c) 2014 - 2018 Shinnosuke Watanabe
Licensed under the MIT LIcense.