NuGet package | Owin.Framework.Less |
GitHub source | OwinFramework.Less |
Serves requests for CSS files by compiling and caching LESS files on the fly
This middleware will handle requests for .css files. If there is a physical file with a .css extension then it will serve this file. If there is no .css file on disk but there is a .less file with the same name, then it will use dotless to compile the less file into css and send this as the response.
builder.Register(ninject.Get<OwinFramework.Less.LessMiddleware>()) .As("Less") .ConfigureWith(config, "/owinFramework/middleware/less");
The configuration below is the configuration you will get by default if you do not provide a configuration for this middleware.
{ "owinFramework": { "middleware": { "less": { "documentationRootUrl": "/owin/less/config", "rootUrl": "/styles", "rootDirectory": "~\\styles", "enabled": true, "analyticsEnabled": true, "minify": false, "traceLog": false } } } }