WebOptimizer
WebOptimizer copied to clipboard
Taghelper - Version flag for css bundle does not update
Hi, I use the weboptimizer pipeline to bundle sass to css. However I have noticed that the version flag added by the taghelper does not change when I change the sass files. To get the newest bundle I need to empty the cache of my browser.
I seem stuck on v=hMFYRjtKiiHJj3DoyiFzteN5udE which does not change.
Thanks
The projekt is .NET Core 3.1.
I bundle the sass using; services.AddWebOptimizer(pipeline => { pipeline.AddScssBundle("~/css/loggedin_styles.css", "sass/loggedinMaster.scss"); pipeline.AddScssBundle("~/css/public_styles.css", "sass/publicMaster.scss");
pipeline.MinifyCssFiles();
pipeline.MinifyJsFiles();
pipeline.MinifyHtmlFiles();
});
and I have included the taghelpers in in _ViewImports; @addTagHelper *, WebOptimizer.Core @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
The bundles are then referenced in a layout file like this; link rel="stylesheet" href="~/css/public_styles.css"