pika-plugin-unpkg-field
Version:
Pika plugin that sets the unpkg field in pkg/package.json
27 lines (21 loc) • 631 B
Markdown
# pika-plugin-unpkg-field
[`pika` build plugin](https://github.com/pikapkg/builders) 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
```json
{
...
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-build-web"
],
[
"pika-plugin-unpkg-field"
]
]
}
}
```
Setting the `unpkg` field in your `package.json` makes [https://unpkg.com/](https://unpkg.com/) return that file by default when requested without a path.
## LICENSE
[ISC](LICENSE)