File tree Expand file tree Collapse file tree 4 files changed +24
-17
lines changed
postcss-recipes/open-props Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ See : https://open-props.style/
13
13
## Moving parts
14
14
15
15
- run PostCSS with ` postcss-cli `
16
- - bundle with ` postcss-import `
17
- - inject ` @custom-media ` with ` postcss-global-data `
16
+ - bundle with ` @csstools/ postcss-bundler `
17
+ - inject ` @custom-media ` with ` @csstools/ postcss-global-data`
18
18
- inject CSS variables with ` postcss-jit-props `
19
19
- nesting and other modern features with ` postcss-preset-env `
20
- - minify with ` cssnano `
20
+ - minify with ` @csstools/postcss-minify `
21
21
22
22
See ` package.json ` for the full list of dependencies and the scripts.
23
23
24
- ## Reading
24
+ ## Reading
25
25
26
- - [ cssnano ] ( https://cssnano.co )
27
- - [ open props ] ( https://open-props.style/ )
28
- - [ postcss-cli ] ( https://github.com/postcss/ postcss-cli )
29
- - [ postcss-global-data ] ( https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-global-data )
30
- - [ postcss-import ] ( https://www.npmjs. com/package /postcss-import )
31
- - [ postcss-jit-props] ( https://github.com/GoogleChromeLabs/postcss-jit-props )
26
+ - [ ` open props ` ] ( https://open-props.style/ )
27
+ - [ ` @csstools/postcss-bundler ` ] ( https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-bundler )
28
+ - [ ` @csstools/ postcss-global-data ` ] ( https://github.com/csstools/ postcss-plugins/tree/main/plugins/ postcss-global-data )
29
+ - [ ` @csstools/ postcss-minify ` ] ( https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-minify )
30
+ - [ ` postcss-cli ` ] ( https://github. com/postcss /postcss-cli )
31
+ - [ ` postcss-jit-props ` ] ( https://github.com/GoogleChromeLabs/postcss-jit-props )
Original file line number Diff line number Diff line change 8
8
"node" : " ^14 || ^16 || >=18"
9
9
},
10
10
"devDependencies" : {
11
+ "@csstools/postcss-bundler" : " ^1.0.2" ,
11
12
"@csstools/postcss-global-data" : " ^2.0.1" ,
12
- "cssnano " : " ^6 .0.1 " ,
13
+ "@csstools/postcss-minify " : " ^1 .0.0 " ,
13
14
"open-props" : " ^1.5.10" ,
14
15
"postcss-cli" : " ^10.1.0" ,
15
16
"postcss-custom-media" : " ^10.0.0" ,
16
- "postcss-import" : " ^15.1.0" ,
17
17
"postcss-jit-props" : " ^1.0.13" ,
18
18
"postcss-preset-env" : " ^9.1.0"
19
19
},
Original file line number Diff line number Diff line change 1
- const cssnano = require ( 'cssnano' ) ;
2
1
const openProps = require ( 'open-props' ) ;
2
+ const postcssBundler = require ( '@csstools/postcss-bundler' ) ;
3
3
const postcssCustomMedia = require ( 'postcss-custom-media' ) ;
4
4
const postcssGlobalData = require ( '@csstools/postcss-global-data' ) ;
5
- const postcssImport = require ( 'postcss-import' ) ;
6
5
const postcssJitProps = require ( 'postcss-jit-props' ) ;
6
+ const postcssMinify = require ( '@csstools/postcss-minify' ) ;
7
7
const postcssPresetEnv = require ( 'postcss-preset-env' ) ;
8
8
9
9
module . exports = {
10
10
plugins : [
11
- postcssImport ( ) ,
11
+ postcssBundler ( ) ,
12
12
postcssGlobalData ( {
13
13
files : [
14
14
'node_modules://open-props/media.min.css' ,
@@ -24,6 +24,6 @@ module.exports = {
24
24
'custom-media-queries' : false ,
25
25
} ,
26
26
} ) ,
27
- cssnano ( ) ,
27
+ postcssMinify ( ) ,
28
28
] ,
29
29
} ;
You can’t perform that action at this time.
0 commit comments