js: migrate dropzone to yarn.

Also fixes a bug where sometimes the dropzone widget didn't work because
of late loading caused by the `<script async>` tag.
This commit is contained in:
evazion
2019-08-14 01:46:43 -05:00
parent 5e78e36537
commit fccb6cda27
4 changed files with 18 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ function importAll(r) {
require('jquery-ujs');
require('hammerjs');
require('dropzone');
require('spark-md5');
// should start looking for nodejs replacements
importAll(require.context('../vendor', true, /\.js$/));
@@ -43,3 +45,5 @@ export { default as Shortcuts } from '../src/javascripts/shortcuts.js';
export { default as Upload } from '../src/javascripts/uploads.js';
export { default as Utility } from '../src/javascripts/utility.js';
export { default as Ugoira } from '../src/javascripts/ugoira.js';
export { default as Dropzone } from 'dropzone';
export { default as SparkMD5 } from 'spark-md5';