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

Please provide a compressed package of es6's module syntax in NPM. #501

Closed
ZhangChengLin opened this issue Mar 27, 2019 · 6 comments
Closed
Milestone

Comments

@ZhangChengLin
Copy link

Not everyone will choose a CDN.

@FagnerMartinsBrack
Copy link
Member

FagnerMartinsBrack commented Jun 13, 2019

@ZhangChengLin or anybody else coming to this issue: Do you have a suggestion in how we can easily provide a minified version with the least amount of code and effort in the current codebase?

To give some context I had the plan to create a release process but eventually dropped that because it was consuming too much of my time. Please read this for the context about this: #57 (comment). And this one too: #57 (comment) (scroll to the history up to the bottom).

Ping the upvoters: @erralb @muuvmuuv @Chmylov @aleqsio @ValterJunior @akkis @lloydjatkinson

@muuvmuuv
Copy link

@FagnerMartinsBrack for most of my project I use Rollup, see: https://github.com/muuvmuuv/vanilla-click-outside

It is easy to set up and does this job very well.

@carhartl
Copy link
Member

carhartl commented Sep 5, 2019

I’m planning to provide this library as an ES module with a fully modernized v3 release.

@carhartl
Copy link
Member

With #539 in place, as soon as we release the next version, the release will contain a minified version.

@carhartl
Copy link
Member

carhartl commented Oct 5, 2019

We've released version 3 beta, and the package comes with minified versions, for instance via jsdelivr:

https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js

There's an ES module variant as well:

https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.mjs

Install via npm:

$ npm install --save js-cookie@beta

@carhartl carhartl closed this as completed Oct 5, 2019
@FagnerMartinsBrack
Copy link
Member

FagnerMartinsBrack commented Oct 6, 2019

@carhartl I also added this last line to the release:

From < 900 bytes gzipped to < 800 bytes gzipped

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

No branches or pull requests

4 participants