Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moves critical CSS to their own partials * Adjusts entry points for main and critical files * Updates webpack for multiple entry points * Inlines the critical CSS file
- Loading branch information
1 parent
a3ea2cf
commit 3131c07
Showing
11 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './scss/critical.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
/* eslint eslint-comments/disable-enable-pair: error */ | ||
/* eslint-disable no-undef, no-unused-vars */ | ||
|
||
import './scss/tailwind.scss'; | ||
import './scss/index.scss'; | ||
import './js/index'; | ||
|
||
/* eslint-enable no-undef, no-unused-vars */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
//---------------------------------------- | ||
// Critical CSS. | ||
//---------------------------------------- | ||
@import 'critical/index.scss'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//---------------------------------------- | ||
// Critical CSS | ||
// | ||
// Import partials for "above the fold" (barf) styles. | ||
//---------------------------------------- | ||
|
||
@import 'header'; | ||
@import 'menus'; | ||
@import 'mobile-menus'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,4 @@ | |
|
||
@import 'comments'; | ||
@import 'footer'; | ||
@import 'header'; | ||
@import 'posts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters