File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ module.exports = function (grunt) {
34
34
kssCmd . push ( realPath + 'node_modules/kss/bin/kss-node' ) ;
35
35
36
36
this . files . forEach ( function ( file ) {
37
- kssCmd . push ( "'" + file . src [ 0 ] + "'" ) ;
38
- kssCmd . push ( "'" + file . dest + "'" ) ;
37
+ file . src . forEach ( function ( src ) {
38
+ kssCmd . push ( '--source' , "\"" + src + "\"" ) ;
39
+ } ) ;
40
+
41
+ kssCmd . push ( '--destination' , "\"" + file . dest + "\"" ) ;
39
42
dest = file . dest ;
40
43
} ) ;
41
44
@@ -52,7 +55,14 @@ module.exports = function (grunt) {
52
55
kssCmd . push ( '--custom' , opts . custom ) ;
53
56
}
54
57
if ( opts . css !== null ) {
55
- kssCmd . push ( '--css' , opts . css ) ;
58
+ if ( Array . isArray ( opts . css ) ) {
59
+ opts . css . forEach ( function ( css ) {
60
+ kssCmd . push ( '--css' , css ) ;
61
+ } ) ;
62
+ }
63
+ else {
64
+ kssCmd . push ( '--css' , opts . css ) ;
65
+ }
56
66
}
57
67
if ( opts . js !== null ) {
58
68
kssCmd . push ( '--js' , opts . js ) ;
You can’t perform that action at this time.
0 commit comments