Problem/Motivation

Using JS Aggregation doesn't work with Dropzone Entity Browser Widget in Forms

Steps to reproduce

  • Go to /admin/config/development/performance
  • Activate JS Aggregation
  • Open a page with an Dropzone Entity Browser Widget
  • Drag & Drop will fail

Proposed resolution

Mark DropzoneJS Library Files as minified in module libraries.yml

Patch attached

CommentFileSizeAuthor
libraryMinified.patch749 bytesmvogel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mvogel created an issue. See original summary.

jungle’s picture

Status: Active » Reviewed & tested by the community

@mvogel Thanks for opening this and the patch!

  • jungle committed fa6102c on 8.x-2.x authored by mvogel
    Issue #3179821 by mvogel, jungle: Mark Dropzone Library Files as...
jungle’s picture

+++ dropzonejs/dropzonejs.libraries.yml	(date 1600309862000)
@@ -7,10 +7,10 @@
+    /libraries/dropzone/dist/min/dropzone.min.js: { minified: true}
...
+      /libraries/dropzone/dist/min/dropzone.min.css: { minified: true}

Added a space between true and } on committing.

jungle’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.