@@ -30,27 +30,6 @@ if (server) {
3030 exec ( 'php index.php > index.html' ) ;
3131}
3232
33- const svgoConfig = {
34- plugins : [
35- { name : 'cleanupAttrs' , active : true } ,
36- { name : 'removeDoctype' , active : true } ,
37- { name : 'removeXMLProcInst' , active : true } ,
38- { name : 'removeComments' , active : true } ,
39- { name : 'removeMetadata' , active : true } ,
40- { name : 'removeUselessDefs' , active : true } ,
41- { name : 'removeEditorsNSData' , active : true } ,
42- { name : 'removeEmptyAttrs' , active : true } ,
43- { name : 'removeHiddenElems' , active : false } ,
44- { name : 'removeEmptyText' , active : true } ,
45- { name : 'removeEmptyContainers' , active : true } ,
46- { name : 'cleanupEnableBackground' , active : true } ,
47- { name : 'removeViewBox' , active : false } ,
48- { name : 'cleanupIDs' , active : false } ,
49- { name : 'convertStyleToAttrs' , active : true } ,
50- { name : 'removeUselessStrokeAndFill' , active : true }
51- ]
52- } ;
53-
5433const postcssOptions = {
5534 plugins : [ postcssURL ( { url : 'rebase' } ) , autoprefixer ( ) , postcssUtilities , postcssEasyImport , postcssFlexbugsFixed ] ,
5635 ...sourceMap
@@ -124,7 +103,7 @@ const shellScripts = [];
124103const svgs = readdirSync ( './assets/images/svg' ) . filter ( svg => svg [ 0 ] !== '.' ) ;
125104
126105if ( svgs . length ) {
127- shellScripts . push ( 'svgo -f assets/images/svg --config=' + JSON . stringify ( svgoConfig ) ) ;
106+ shellScripts . push ( 'svgo -f assets/images/svg' ) ;
128107
129108 shellScripts . push ( 'spritesh -q -i assets/images/svg -o ./assets/dist/sprite.svg -p svg-' ) ;
130109}
0 commit comments