@@ -22,27 +22,6 @@ if (server) {
2222 exec ( 'php index.php > index.html' ) ;
2323}
2424
25- const svgoConfig = {
26- plugins : [
27- { name : 'cleanupAttrs' , active : true } ,
28- { name : 'removeDoctype' , active : true } ,
29- { name : 'removeXMLProcInst' , active : true } ,
30- { name : 'removeComments' , active : true } ,
31- { name : 'removeMetadata' , active : true } ,
32- { name : 'removeUselessDefs' , active : true } ,
33- { name : 'removeEditorsNSData' , active : true } ,
34- { name : 'removeEmptyAttrs' , active : true } ,
35- { name : 'removeHiddenElems' , active : false } ,
36- { name : 'removeEmptyText' , active : true } ,
37- { name : 'removeEmptyContainers' , active : true } ,
38- { name : 'cleanupEnableBackground' , active : true } ,
39- { name : 'removeViewBox' , active : false } ,
40- { name : 'cleanupIDs' , active : false } ,
41- { name : 'convertStyleToAttrs' , active : true } ,
42- { name : 'removeUselessStrokeAndFill' , active : true }
43- ]
44- } ;
45-
4625const postcssOptions = {
4726 ident : 'postcss' ,
4827 plugins : [
@@ -152,7 +131,7 @@ const shellScripts = [];
152131const svgs = readdirSync ( './assets/images/svg' ) . filter ( svg => svg [ 0 ] !== '.' ) ;
153132
154133if ( svgs . length ) {
155- shellScripts . push ( 'svgo -f assets/images/svg --config=' + JSON . stringify ( svgoConfig ) ) ;
134+ shellScripts . push ( 'svgo -f assets/images/svg' ) ;
156135 shellScripts . push ( 'spritesh -q -i assets/images/svg -o ./assets/dist/sprite.svg -p svg-' ) ;
157136}
158137
0 commit comments