2.0.1 • Published 7 years ago

vulcanize-loader v2.0.1

Weekly downloads
40
License
MIT
Repository
github
Last release
7 years ago

Vulcanize loader for webpack

Use html-imports and webcomponents in your webpack bundle with Vulcanize (from Polymer)

With ES6 support via babel.

Usage

  • Specify root path with base
  • Minify javascript with NODE_ENV=production or query parameter compress.
  • The module will vulcanize the file and write write the document.head to add the corresponding html-import.
require("vulcanize?compress=true&base=/lib!./imports.html");
// => returns i. e. "/lib/imports.html"
  • To watch files for changes, use a | separated list of relative filenames
  • To watch folders for changes, use a | separated list of relative directories
require("vulcanize?compress=true&base=/lib&watchFolders=./elements|./elements2&watchFiles=./elements3/a.html|./elements3/b.html!./imports.html");
// => returns i. e. "/lib/imports.html"
//    rebuilds when any file in ./elements or ./elements2 changes
//    rebuilds when ./elements3/a.html or ./elements3/b.html changes

License

MIT (http://www.opensource.org/licenses/mit-license.php)

2.0.1

7 years ago

2.0.0

7 years ago

1.2.1

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.1

8 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago