Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
446 views
in Technique[技术] by (71.8m points)

asp.net mvc - How do I get SASS in my Razor cshtml pages to transpile?

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?

question from:https://stackoverflow.com/questions/65942672/how-do-i-get-sass-in-my-razor-cshtml-pages-to-transpile

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...