File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 37
37
"typescript" : " ~4.3.2" ,
38
38
"url-loader" : " ^4.1.1" ,
39
39
"webpack" : " ^5.65.0"
40
+ },
41
+ "peerDependencies" : {
42
+ "postcss" : " ^8.0.0"
40
43
}
41
44
}
Original file line number Diff line number Diff line change @@ -22,20 +22,22 @@ module.exports = {
22
22
options : {
23
23
postcssOptions : {
24
24
plugins : [
25
- postcss . plugin ( 'delete-tilde' , function ( ) {
26
- return function ( css ) {
27
- css . walkAtRules ( 'import' , function ( rule ) {
28
- rule . params = rule . params . replace ( '~' , '' ) ;
29
- } ) ;
30
- } ;
31
- } ) ,
32
- postcss . plugin ( 'prepend' , function ( ) {
33
- return function ( css ) {
25
+ {
26
+ postcssPlugin : 'delete-tilde' ,
27
+ AtRule : {
28
+ import : ( atRule ) => {
29
+ atRule . params = atRule . params . replace ( '~' , '' ) ;
30
+ } ,
31
+ } ,
32
+ } ,
33
+ {
34
+ postcssPlugin : 'prepend' ,
35
+ Once ( css ) {
34
36
css . prepend (
35
37
"@import '@jupyter-widgets/controls/css/labvariables.css';"
36
38
) ;
37
- } ;
38
- } ) ,
39
+ } ,
40
+ } ,
39
41
require ( 'postcss-import' ) ( ) ,
40
42
require ( 'postcss-cssnext' ) ( ) ,
41
43
] ,
You can’t perform that action at this time.
0 commit comments