WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Bootstrap + Boostwatch

Open vd3d opened this issue 4 years ago • 1 comments

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:

            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)

Any idea ?

vd3d avatar Jun 02 '20 10:06 vd3d

Bump on this. I am experiencing the same thing

nnyegaard avatar Dec 07 '20 10:12 nnyegaard