- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
And links to files look like this:
If I have a package like this. I use
npm install name browserify -s name -r name | uglifyjs > name.min.js
Then I can commit the files to git and use them on CodePen.
uglifyjs I have installed globally:
npm i -g browserify uglify-js
Interesting Browserify plugins that you may use:
- licensify - to include the license in output file,
- esmify - to allow ES Modules,
- common-shakeify - to enable tree shaking.
Top comments (1)
This is a pretty clever and hilarious use of gh. Thanks for sharing 👍