ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
764 stars 113 forks source link

Unable to minify Bootstrap due to out of date NUglify package #279

Closed Tolvic closed 1 year ago

Tolvic commented 1 year ago

When attempting to bundle bootstrap.js from Bootstrap v5.3.1 the following error is shown in the bundled file:

Strict-mode does not allow duplicate property names: ...Manipulator.getDataAttributes(this)

and while the bundle is created the file does not minify.

The root cause of this is an issue in the NUglify package as reported here: https://github.com/trullock/NUglify/issues/279

Upgrading to the latest version of NUglify resolves the issue.