Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore browserify support (fix #128) #236

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nopnop
Copy link
Contributor

@nopnop nopnop commented Mar 5, 2018

Using jsonld in a browserify-based build script does not works any more.

This PR update the browser key in package.json in order force
browserify to use the dist version for the browser (generated by
webpack during release process).

This solution provide browserify support without the needs to maintain
complex configuration for both webpack and browserify.
It could be less optimal in term of bundle size (for browserify use a
bundled version of jsonld), but that is better than nothing and the
modern minification tools may resolve this kind of optimization needs.

Using jsonld in a browserify-based build script does not works any more.

This PR update the `browser` key in `package.json` in order force
browserify to use the `dist` version for the browser (generated by
webpack during release process).

This solution provide browserify support without the needs to maintain
complex configuration for both webpack and browserify.
It could be less optimal in term of bundle size (for browserify use a
bundled version of jsonld), but that is better than nothing and the
modern minification tools may resolve this kind of optimization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant