Closed tomByrer closed 9 years ago
No, they are mapping the uncompressed versions to the modules that are in /src. The idea is that during development and testing (when you may need sourcemapping) is more common to use uncompressed version (npm + require() gives back the uncompressed files) or bundle it with other libs and then minify all together, so I see as more useful to have map there. Anyway, I see that most of the times, minified libs on jsdelivr don't have a sourcemap, so I don't see it as an issue, for that purpose.
then minify all together, so I see as more useful to have map there
Oh, so you can pre-set the minification variable names translation with the pre-set .map
file? Neat!
We try not host non-mified files. But when .map
files are available in the repo, I try to host those to help devs live-edit their JS. We spent some time getting them all uploaded for old jQuery on our CDN.
Perhaps hosting .map
files is a waste? Maybe if live editing is needed, then devs should switch their files to the non-compressed versions?
yes, that is my humble opinion. CDNs are great for speeding things in production. Instead, if you want to change or debug the lib and you want to use live edit, then you are surely in a dev environment, not in production, so you don't need to have minified versions with sourcemaps served from CDNs. So in my package I have non-compressed files that maps to single modules in /src AND minified versions without sourcemaps.
if it's not a problem for you, when you have a chance please let me know what I have to do in order to host it on jsdelivr. Thanks
Do I have to copy those two files in my repository root, right?
never mind, I've understood now that those files are on the jsdelivr repo. So, does it updates automatically on every new release I make?
Thank you very much for your help.
So, does it updates automatically on every new release I make?
Yes, so keep doing what you're doing! :) Be careful not to push a change minutes after a new release, since the libgraber bot runs only every 15 minutes. (unless you want to patch a bug real fast )
Also if move your minified files to another folder, you'll have to edit your update.json
. Edit your info.ini if you move the repo/project-homepage, etc.
I'll make a usage README (leaving open), but I have a 7am meeting first ;)
Perfect, it's all clear. Later I'll update the readme to include the links to files on CDN.
Thanks a lot! Have a nice meeting :)
Are those map files mapping the
/minified/*.min.js
files? Should they be hosted together (eg will Chrome & Fx find them & read them)? I'm about to host your project on jsDelivr CDN; that is why I'm being so picky ;)