@@ -23,27 +23,6 @@ if (server) {
2323 exec ( 'php index.php > index.html' ) ;
2424}
2525
26- const svgoConfig = {
27- plugins : [
28- { name : 'cleanupAttrs' , active : true } ,
29- { name : 'removeDoctype' , active : true } ,
30- { name : 'removeXMLProcInst' , active : true } ,
31- { name : 'removeComments' , active : true } ,
32- { name : 'removeMetadata' , active : true } ,
33- { name : 'removeUselessDefs' , active : true } ,
34- { name : 'removeEditorsNSData' , active : true } ,
35- { name : 'removeEmptyAttrs' , active : true } ,
36- { name : 'removeHiddenElems' , active : false } ,
37- { name : 'removeEmptyText' , active : true } ,
38- { name : 'removeEmptyContainers' , active : true } ,
39- { name : 'cleanupEnableBackground' , active : true } ,
40- { name : 'removeViewBox' , active : false } ,
41- { name : 'cleanupIDs' , active : false } ,
42- { name : 'convertStyleToAttrs' , active : true } ,
43- { name : 'removeUselessStrokeAndFill' , active : true }
44- ]
45- } ;
46-
4726const postcssOptions = {
4827 plugins : [
4928 require ( 'postcss-easy-import' ) ,
@@ -136,7 +115,7 @@ const shellScripts = [];
136115const svgs = readdirSync ( './assets/images/svg' ) . filter ( svg => svg [ 0 ] !== '.' ) ;
137116
138117if ( svgs . length ) {
139- shellScripts . push ( 'svgo -f assets/images/svg --config=' + JSON . stringify ( svgoConfig ) ) ;
118+ shellScripts . push ( 'svgo -f assets/images/svg' ) ;
140119 shellScripts . push ( 'spritesh -q -i assets/images/svg -o ./assets/dist/sprite.svg -p svg-' ) ;
141120}
142121
0 commit comments