context.Services.AddWebOptimizer(pipeline =>
{
// UseContentRoot only sets the root of the source files
pipeline
.AddScssBundle("/css/site.css", "/wwwroot/css/style_ext.scss")
//.AddScssBundle("/css/site.css", "/node_modules/bootstrap/scss/**/*.scss", "/wwwroot/css/*.scss")
.UseContentRoot();
});
Where the "litera" scss are in the "/wwwroot/css" folder. So, my setup looks good.
But I got some error messages from the compiler, it is not able to find some variables.
So, either your compiler is "too" strict, or boostrap has some missing pieces ? (or it is me :-P)
Hi,
I currently use bootstrap 4 and wish to use a custom there that I got from here: https://bootswatch.com/litera/
So, I use the following line to compile the SCSS:
Where the "litera" scss are in the "/wwwroot/css" folder. So, my setup looks good.
But I got some error messages from the compiler, it is not able to find some variables. So, either your compiler is "too" strict, or boostrap has some missing pieces ? (or it is me :-P)
Any idea ?