Broccoli plugin for Polymer vulcanize tool.
npm install --save-dev broccoli-vulcanize
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
.