Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bitstorm committed Sep 5, 2022
1 parent 9b9e1a7 commit 5fe68b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -59,7 +59,7 @@ CompileSuccess compileSuccess = sassCompiler.compile(resource);
String css = compileSuccess.getCss();
```

Files form WebJars can be also imported directly from SCSS files. Let'say for example that we would like to customize Bootstrap with our favourite colors. We could create a custom SCSS file (let's say src/main/resources/custom-bootstrap.scss) with this content:
Files form WebJars can be also imported directly from SCSS files. Let'say for example that we would like to customize Bootstrap with our favorite colors. We could create a custom SCSS file (let's say src/main/resources/custom-bootstrap.scss) with this content:

```
//VARIABLE OVERRIDING
Expand All @@ -79,5 +79,6 @@ sassCompiler.registerImporter(new WebjarsImporter().autoCanonicalize());
URL resource = getClass().getResource("/custom-bootstrap.scss");
CompileSuccess compileSuccess = sassCompiler.compile(resource);
//custom Bootstrap css
String css = compileSuccess.getCss();
```

0 comments on commit 5fe68b1

Please sign in to comment.