Skip to content

[request] include webpack browser bundle to npm package #73

Open
@warren-bank

Description

Hi. I totally get that "Packaging for browsers is currently highly experimental".

But to make it easier to play with.. would there be an objection to updating the prepublishOnly npm script

  • from:
      "prepublishOnly": "npm run build",
  • to:
      "prepublishOnly": "npm run build && npm run browser:build",
  • so for subsequent releases:
      <script type="text/javascript" src="ipfs-lite.all.min.js"></script>

If the size the bundle adds to the npm package is an issue, then could it be attached to its corresponding tagged release?

PS. If size is a concern, you may also consider adding an .npmignore file to exclude everything in the repo except the dist/ directory generated by the build tasks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions