pika-plugin-unpkg-field

1.1.0 • Public • Published

pika-plugin-unpkg-field

pika build plugin which adds an unpkg field to pkg/package.json.

This requires @pika/plugin-build-web in your build pipeline to actually build the module for the web. Example package.json configuration

{
  ...
  "@pika/pack": {
    "pipeline": [
      [
        "@pika/plugin-build-web"
      ],
      [
        "pika-plugin-unpkg-field"
      ]
    ]
  }
}

Setting the unpkg field in your package.json makes https://unpkg.com/ return that file by default when requested without a path.

LICENSE

ISC

Readme

Keywords

Package Sidebar

Install

npm i pika-plugin-unpkg-field

Weekly Downloads

6

Version

1.1.0

License

ISC

Unpacked Size

2.11 kB

Total Files

4

Last publish

Collaborators

  • gr2m