mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2025-07-22 21:51:46 +02:00
source/scss: Only import parts of font-awesome that we actually need
We can save ~30KiB in our stylesheet by only importing font-awesome features and icons that we are actually using.
This commit is contained in:
@ -5,7 +5,9 @@ $enable-grid-classes: true;
|
||||
// optional: import local styles first
|
||||
@import 'source/scss/main.scss';
|
||||
|
||||
@import 'node_modules/font-awesome/scss/font-awesome.scss';
|
||||
// selectively import components we need from font-awesome
|
||||
// see: node_modules/font-awesome/scss/font-awesome.scss
|
||||
@import 'source/scss/font-awesome.scss';
|
||||
|
||||
// selectively import components we need from bootstrap
|
||||
// see: node_modules/bootstrap/scss/bootstrap.scss
|
||||
|
Reference in New Issue
Block a user