ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
782 stars 114 forks source link

Bootstrap + Boostwatch #128

Open vd3d opened 4 years ago

vd3d commented 4 years ago

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 ?

nnyegaard commented 3 years ago

Bump on this. I am experiencing the same thing