WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Minification broken for Bootstrap Javascript due to a NUglify issue - NUglify update needed

Open Daeymon opened this issue 3 years ago • 4 comments

Minification currently is broken if a javascript bundle includes Bootstrap. This is a NUglify issue which has been resolved in release 1.17.8 (https://github.com/trullock/NUglify/issues/279).

Could you update the version of NUglify that WebOptimizer uses so WebOptimzer gets the fix?

Daeymon avatar Jan 28 '22 11:01 Daeymon

I believe I'm also seeing this issue when including the Bootstrap bundle JS file for minification, and concur with @Daeymon--would very much like to see WebOptimizer pull in the fix from NUglify. Thanks!

Tim-Andersen avatar Feb 02 '22 21:02 Tim-Andersen

Same issue here. I had to install NUglify version 1.20.2 in order to properly minify the CSS of Bootstrap 5.2.3.

oh-yeah avatar Jan 09 '23 22:01 oh-yeah

Having the same issue. Getting a error inside the bundle at the top, nothing is broken. /* input(13224,6894-6927): run-time error JS1292: Strict-mode does not allow duplicate property names: ...o(e)?H.getDataAttributes(e):{} input(13224,6928-6954): run-time error JS1292: Strict-mode does not allow duplicate property names: ..."object"==typeof t?t:{} */

Versions:

  • Bootstrap v5.3.0-alpha3 js bundle file.
  • Ligershark Weboptimizer 3.0.384

htodep avatar May 15 '23 14:05 htodep

Should be fixed by #280.

mmarinchenko avatar Sep 25 '23 13:09 mmarinchenko