I am using a bootstrap 5 template (I have the minified version), which looks like this. This file is generated using gulp:
I want to include this file in ASP.NET MVC 5 bundle, as it adds the cache busting version to the URL. MVC bundler tried to minify the file, but I don’t know why the minification throws error:
This is MVC bundler produce:
This is the error:
Minification failed. Returning unminified contents.
I guess the MVC minification process does not recognize the syntax of my Bootstrap 5 template?
How can I fix this issue?