madskristensen / BundlerMinifier

Visual Studio extension
Other
616 stars 173 forks source link

Hard to track errors #495

Open it-xtech-dev opened 4 years ago

it-xtech-dev commented 4 years ago

Installed product versions

Microsoft Visual Studio Enterprise 2019 Version 16.3.10 VisualStudio.16.Release/16.3.10+29519.87 Microsoft .NET Framework Version 4.8.03761

Description

When minifing css I get hard to track error messages: Processing wwwroot/_cache/foundation.min.css Expected selector, found '/' Expected comma or open brace, found '/' Expected closing parenthesis, found ',' Expected function, found ',' Expected semicolon or closing curly-brace, found ')' Process terminated with code 0.

bundleconfig.json:

[
  {
    "outputFileName": "wwwroot/_cache/foundation.min.css",
    "inputFiles": [
      "wwwroot/lib/bootstrap/dist/css/bootstrap.css"
      "wwwroot/css/layout.css"
      "wwwroot/css/theme-default.css",
      "wwwroot/css/site.css"
    ]
  }
]

Expected behavior

I would expect that errors show at least file name and line number where problem occured. Also I would expect that libs like boostrap should be bundled without any problem - its had to imagine that source files should be modified because of bundler.