0

Is there a way to compile all .scss files in a /scss folder into a single .css that can sit inside the wwwroot/css/ folder in a .net/razor pages application? I currently have Web Compiler 2022+ installed but it doesn't group files together.

I've tried using import statements in a single main.scss file but that doesn't work either.

I'm new to Visual Studio, C# and .net so any suggests would be great.

  • 1
    AFAIK, Web Compiler is simply a compiler for Sass, LESS, JSX etc. You can use a separate bundler: https://learn.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification?view=aspnetcore-7.0 – Mike Brind Jun 07 '23 at 08:27

1 Answers1

0

I would look at gulp.js or grunt.js to manage tasks like compilation of .scss files stylesheets. You will be able to group files like you want.