File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
jupyter-widgets-htmlmanager/test Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' ) ;
2
+ var postcss = require ( 'postcss' ) ;
2
3
3
4
module . exports = {
4
5
entry : './test/build/index.js' ,
@@ -17,10 +18,22 @@ module.exports = {
17
18
{ test : / \. j s o n $ / , loader : 'json-loader' } ,
18
19
] ,
19
20
} ,
20
- postcss : function ( ) {
21
+ postcss : ( ) => {
21
22
return [
22
- require ( 'postcss-import' ) ,
23
- require ( 'postcss-cssnext' )
23
+ postcss . plugin ( 'delete-tilde' , ( ) => {
24
+ return function ( css ) {
25
+ css . walkAtRules ( 'import' , ( rule ) => {
26
+ rule . params = rule . params . replace ( '~' , '' ) ;
27
+ } ) ;
28
+ } ;
29
+ } ) ,
30
+ postcss . plugin ( 'prepend' , ( ) => {
31
+ return ( css ) => {
32
+ css . prepend ( `@import '@jupyter-widgets/controls/css/labvariables.css';` )
33
+ }
34
+ } ) ,
35
+ require ( 'postcss-import' ) ( ) ,
36
+ require ( 'postcss-cssnext' ) ( )
24
37
] ;
25
38
}
26
39
}
You can’t perform that action at this time.
0 commit comments