ligershark / WebOptimizer

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

Using with .NET 8, when named site.js, file doesn't minify. #306

Closed eaglei22 closed 5 months ago

eaglei22 commented 5 months ago

I'm using .NET 8 as my target framework and for some reason when the javascript file is named site.js (the default file) it won't minify.. if I change the name though it works.

site.css works fine however .

-wwwroot -js -site.js

Version 3.0.405

AderitoSilva commented 5 months ago

That's odd. It works well for me with that same exact set up. Does that also happen if you try to create a new project and add WebOptimizer to it, or does it only happen in a specific project?

eaglei22 commented 5 months ago

Okay, tried a new project with the same setup and js code, and it's working correctly.

Weird, guess I should have done that in the first place. It didn't cross my mind because this project was just created a couple weeks ago.

Anyway, thanks for verifying!