added an extra pre-step which loads jQuery from a CDN and then kicks off index.js
made webpack a dev dependency of the project and using the latest version
added webpack-cli because it was a required peer dependency of newer webpack
livescript-loader did not work with the latest webpack so removed it and added livescript as a dev dependency and compiling before using webpack (see package.json script)
updated webpack config because of the above reasons
found a better maintained version of FileSaver.js. It wasn't working but now it is
you can test it out by creating a bookmark pointing to my repo:
javascript:(function(d){var s=d.createElement('script');s.src="https://raw.githack.com/FranciscoG/Dubtrack-Playlist-Pusher/jquery-cdn/index.js";d.body.appendChild(s)})(document);void(8)
note
if you do merge you'll need to update your bookmarklet example to remove the jQuery and use the same pure js in my test example
index.js
webpack
a dev dependency of the project and using the latest versionwebpack-cli
because it was a required peer dependency of newer webpacklivescript-loader
did not work with the latest webpack so removed it and addedlivescript
as a dev dependency and compiling before using webpack (see package.json script)you can test it out by creating a bookmark pointing to my repo:
javascript:(function(d){var s=d.createElement('script');s.src="https://raw.githack.com/FranciscoG/Dubtrack-Playlist-Pusher/jquery-cdn/index.js";d.body.appendChild(s)})(document);void(8)
note
if you do merge you'll need to update your bookmarklet example to remove the jQuery and use the same pure js in my test example