File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ lang: en
175175- ` postcss-cli ` - PostCSS command-line interface
176176- ` postcss-import ` - PostCSS plugin for @import resolution
177177- ` autoprefixer ` - PostCSS plugin for vendor prefix automation
178+ - ` cssnano ` - CSS minification tool (activated only in production builds to optimize CSS file size)
178179
179180## Important Conventions
180181
Original file line number Diff line number Diff line change 55 "devDependencies" : {
66 "@tailwindcss/typography" : " ^0.5.19" ,
77 "autoprefixer" : " ^10.4.23" ,
8+ "cssnano" : " ^7.1.2" ,
89 "postcss" : " ^8.5.6" ,
910 "postcss-cli" : " ^11.0.1" ,
1011 "postcss-import" : " ^16.1.1" ,
Original file line number Diff line number Diff line change @@ -7,5 +7,10 @@ module.exports = {
77 } ,
88 tailwindcss : { } ,
99 autoprefixer : { } ,
10+ ...( process . env . JEKYLL_ENV === 'production' && {
11+ cssnano : {
12+ preset : 'default'
13+ }
14+ } )
1015 }
1116} ;
You can’t perform that action at this time.
0 commit comments