A drag'n'drop image upload plugin for Vanilla Forums utilising the Imgur REST API
This project is GPLv3, with the exception of the icon, which is based on an icon that is CC-Attribution and created by Garrett Knoll from Noun Project
This plugin uses a tweaked version of DropzoneJS. Specifically, it removes the default request headers, as these cause the Imgur API to refuse our requests.
My preferred method is using uglify-js from the command line
-
Install uglify-js from NPM:
npm install uglify-js -g -
Navigate to the JS directory and compress the source with the following command:
uglifyjs --mangle --compress --output imgurupload.min.js --source-map imgurupload.js.map imgurupload.js