madskristensen / BundlerMinifier

Visual Studio extension
Other
616 stars 173 forks source link

JS/CSS won't minify #483

Open Gruski opened 4 years ago

Gruski commented 4 years ago

Using: v3.2.447 Visual Studio: 2019 with extension WebForms web site project When CSS/JS fails to minify how can I tell what the problem is? Is there a log or something when these get automatically built in VS. If so where is it? And why doesn't it minify the files it can and leave the ones it can't alone? Instead if leaves everything unminified. Also when it fails it leaves the *.min.js unchanged from the last time it succeed so this causes stale code not to be updated if there are references to the min version.

grayter1 commented 4 years ago

The same problem here.

AbandonedRickshaw commented 4 years ago

I have the same issue. The problem started with 2.7.385, and occurs with every version after. I get syntax errors, particularly on TypeAhead.js

The syntax errors are about periods, commas, braces, etc. starting at (according to the error) line 190

Everything works fine with 2.6.375, but not with anything after. I am using .net core 3.1.3

MarkFl12 commented 4 years ago

I'm having this issue with TypeAhead.js as well. I've not tried any previous versions, but it's still happening to me on 3.2.447. It only happens when I try and minify rather than just bundling.

hollyjrobertson commented 4 years ago

Same here. Steps:

  1. Minify File by right-clicking file
  2. File doesn't populate or show any indication it was minified (check excluded files as well)
  3. I minify the file via online converter
  4. Paste the minified code into the original CSS file (pasting over original values)
  5. Right click to rename original css file
  6. Minified File then pops up

I'm uninstalling B&M vs 2.8.396