I'm in the process of switching my site over to less and I was wanting to continue the use of Web.Optimization
however, it fails on compiling less. Is there a way to register .less{}
as the processor for this or simply tell it to bundle, but not minify anything with a .less
extension?
相关问题
- Did Auto-Bundling/Minification Get Tossed in Final
- Bundled CSS not loading when published to Azure
- Produce a “type” attribute in the “script” tag whe
- Microsoft.AspNet.Web.Optimization JavaScript bundl
- MVC5 bundle url version and content are missing
相关文章
- MVC CDN fallback for Style Bundle
- Is there a way to update asp.net mvc bundle conten
- ASP.NET MVC 4 app with bundling and minification,
- ASP.NET MVC4 Bundle a single file
- cssmin not correctly handling @import
- Visual Studio 2012 Conditional Bundling
- HTTP Error 500.23 after adding dotless to my local
- With Webpack, is it possible to generate CSS only,
Take a look at this guide to bundling and minification. It contains an example on bundling LESS files.
Essentially you create a class that implements
IBundleTransform
With this and
CssMinify
you can then create a bundle.