1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 22:46:39 -04:00

automatically inline critical css via critters (#760)

This commit is contained in:
2022-02-07 14:40:38 -05:00
committed by GitHub
parent bcb408702a
commit da42cb074c
9 changed files with 120 additions and 78 deletions

View File

@ -28,6 +28,10 @@ module.exports = (phase, { defaultConfig }) => {
images: {
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
},
experimental: {
// use critters to automatically inline critical css:
optimizeCss: true,
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,