Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including broccoli-vulcanize with all npm packages installed. Try it out:

var broccoliVulcanize = require("broccoli-vulcanize")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

broccoli-vulcanize v4.0.0

Broccoli plugin for Polymer Vulcanize tool

broccoli-vulcanize

Build Status

Broccoli plugin for Polymer vulcanize tool.

Install

npm install --save-dev broccoli-vulcanize

Usage

var vulcanize = require('broccoli-vulcanize');
var inputTree = 'public';
var options = {
  input: 'index.html',
  output: 'output/vulcanized.html',
  abspath: '/webroot/',
  excludes: ['.css', '.js'],
  stripExcludes: [],
  addedImports: [
    'foo/bar.html'
  ],
  redirects: [
    'https://example.com/foo/bar.html|/foo/bar/baz.html'
  ],
  stripComments: false,
  inlineScripts: false,
  inlineCss: false,
  implicitStrip: true
};

module.exports = vulcanize(inputTree, options);

See polymer vulcanize for details on options.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free