This package has been deprecated

Author message:

Please use official polyfills @v2 instead. They don't include HTML imports by default anymore.

webcomponents-loader-no-hi

0.1.0 • Public • Published

webcomponents-loader-no-hi

Greenkeeper badge

Did you ever build a site that uses web components but doesn't make use of HTML imports? This is for you.

This is a polyfill-loader that works just like the one from webcomponents/webcomponentsjs but doesn't load the HTML imports polyfill by default. HTML imports don't seem to make it to an accepted standard, so if you have a site that doesn't use them there is no need to bloat your site and polyfill that functionality.

Usage

  1. Install this module and the web components polyfills from npm and deploy them to your site. The script expects a directory structure like npm / yarn would create for you. Simply deploy your node_modules folder (or certain subfolders of it) to the frontend and you should be good.
  2. Include a script tag in your site like <script src="/node_modules/webcomponents-loader-no-hi/webcomponents-loader.js></script>.
  3. The script will run and load the polyfills from /<NODE_INSTALLATION_FOLDER>/@webcomponents/webcomponentsjs/.
  4. Wait for the 'WebComponentsReady' event before doing webcomponent-y stuff on your page. Go check the official docs on that, though.

Readme

Keywords

none

Package Sidebar

Install

npm i webcomponents-loader-no-hi

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • neolegends