1
0
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:
2016-11-16 12:00:21 +02:00
parent 54bb4e52aa
commit 4d79004570
2 changed files with 29 additions and 1 deletions

View File

@ -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