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

publish client as standalone package #101

Open
leviwheatcroft opened this issue Jun 15, 2019 · 0 comments
Open

publish client as standalone package #101

leviwheatcroft opened this issue Jun 15, 2019 · 0 comments

Comments

@leviwheatcroft
Copy link

I'm using webpack to build the site's js as a single file

Previously I had installed the published schnack package, and then simply imported the built schnack client as a module like import Schnack from 'schnack/build/client.js'.

This worked, but the current version of the schnack package on npm has an old sqlite3 dependency which isn't compatible with node 12. Looking at the situation more closely installing the whole schnack package just to get at schnack/build/client.js might not be the best approach given that it means installing all the schnack dependencies as well.

I think this would be a fairly common use-case, so I figure that others might find it useful to have the schnack client js published as a standalone module, ready for use with webpack or so.

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

No branches or pull requests

1 participant