Build bookmarklets with ease and modern JavaScript.
nvm use
npm i
- Write your bookmarklet in
src/bookmarklet.js
. - Run
npm run build
to run Webpack, Babel and prepare the code to be bookmarklet-ready. - The output will be in
./build/bookmarklet.build.js
as well as in your console. - Copy and paste the code into a new bookmark in your browser!
Running without Webpack
If you prefer to not run Babel and simply remove whitespace in the code and one-line it, run: npm run build-simple
You can find some tips about how to build a bookmarklet using this article.