WebOptimizer
WebOptimizer copied to clipboard
A bundler and minifier for ASP.NET Core
Trying to create a CSS Bundle with [jquery-ui.css](https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css) fails with the following error: ``` System.ArgumentException: Illegal characters in path. at System.IO.PathHelper.Normalize(String path, Boolean checkInvalidCharacters, Boolean expandShortPaths) at System.IO.Path.GetFullPath(String path) at...
I would prefer instead of /obj/WebOptimizerCache to have just /cache folder. or /cache/weboptimizer What's the purpose of build LigerShark.WebOptimizer.Core.targets ? I understand that cache is generated on runtime anyway.
Pipeline setup: ```csharp pipeline.AddCssBundle("/bundles/home.css", "node_modules/simple-line-icons/css/simple-line-icons.css", "node_modules/html5-device-mockups/dist/device-mockups.css") .UseContentRoot(); ``` Original (and the desired output) URL in CSS: ```css @font-face { src: url('../fonts/Simple-Line-Icons.eot?v=2.4.0'); } ``` Bundled and Minified CSS: ```css @font-face{src:url('../node_modules/simple-line-icons/fonts/Simple-Line-Icons.eot?v=2.4.0');} ```...
UPDATE: It seems I may not understand the process as I thought, before when i created a publish it would create an obj folder with WebOptimizerCache and i would deploy...
Hi, i just noticed that if you use (at least one time) ``` pipeline.AddFiles("text/css; charset=UTF-8", "css/test.css") .FingerprintUrls(); ``` and change after adding, lets say ``` pipeline.AddFiles("text/css; charset=UTF-8", "css/test.css") .InlineImages(300000) .FingerprintUrls();...
Hi, probably in https://github.com/ligershark/WebOptimizer/blob/d94face378cc9994bb98183ecef1f040b985bac8/src/WebOptimizer.Core/Processors/CssFingerprinter.cs#L73 you can just use ` info.LastWriteTime.Ticks.ToString() ` generate hash is useless unless you do hash calculation on file content...
Hi, suppose you have ``` h1 { background-image: url("/images/logo.png"); } h2 { background-image: url("/images/logo.png"); } ``` result is ``` h1 { background-image: url("/images/logo.png?v=MkVD9BBdWw2WA3dGctPEc3M4OGM?v=MkVD9BBdWw2WA3dGctPEc3M4OGM"); } h2 { background-image: url("/images/logo.png?v=MkVD9BBdWw2WA3dGctPEc3M4OGM?v=MkVD9BBdWw2WA3dGctPEc3M4OGM"); } ```
It would be nice to add processors for Uglify.HtmlToText(), as present in NUglify v1.5.8. Any thoughts about this? Furthermore, NUglify can cause some performance issues in comparison to other minifiers....