I'm working with MVC5 and using WebCompiler for my scss files. Sometimes, instead of putting my CSS in a separate file, I find it simpler to put it in the cshtml file. I use a section for this that is rendered by my shared view templates, e.g.....
@section Header { <style> .flex100 { display: flex; flex-flow: column; height: 100%; } </style> }
Is there a way to do this so that the CSS I put in the cshtml file is run through a SASS compile?
2.1m questions
2.1m answers
60 comments
57.0k users