Skip to content

Commit

Permalink
React icons svgo update (#512)
Browse files Browse the repository at this point in the history
* Automate bumping react-icons beta version number

* revert

* remove manifest.json

* Release 1.1.179

* revert

* (chore): Add svgo config.js file

* update svgo version

Co-authored-by: Fluent Build System <flubuild@microsoft.com>
  • Loading branch information
tomi-msft and fluentCI committed Oct 31, 2022
1 parent 3c34589 commit 342b1dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-icons/package.json
Expand Up @@ -23,7 +23,7 @@
"generate:font-resizable": "node ../../importer/generateFont.js --source=intermediate --dest=src/utils/fonts --iconType=Resizable",
"generate:font": "npm run generate:font-regular && npm run generate:font-filled && npm run generate:font-resizable",
"rollup": "node ./generateRollup.js",
"optimize": "svgo --folder=./intermediate --precision=2 --disable=removeViewBox,mergePaths",
"optimize": "svgo --config svgo.config.js --folder=./intermediate --precision=2",
"unfill": "find ./intermediate -type f -name \"*.svg\" -exec sed -i.bak 's/fill=\"none\"//g' {} \\; && find ./intermediate -type f -name \"*.bak\" -delete",
"build": "npm run copy && npm run generate:font && npm run optimize && npm run unfill && npm run convert:svg && npm run convert:fonts && npm run cleanSvg && npm run build:esm && npm run build:cjs && npm run copy:font-files",
"build:cjs": "tsc --module commonjs --outDir lib-cjs && babel lib-cjs --out-dir lib-cjs",
Expand All @@ -42,7 +42,7 @@
"mkdirp": "^1.0.4",
"react": "^17.0.1",
"renamer": "^2.0.1",
"svgo": "^1.3.2",
"svgo": "^2.8.0",
"typescript": "~4.1.0",
"yargs": "^14.0.0"
},
Expand Down Expand Up @@ -82,4 +82,4 @@
"require": "./lib-cjs/index.js"
}
}
}
}
13 changes: 13 additions & 0 deletions packages/react-icons/svgo.config.js
@@ -0,0 +1,13 @@
module.exports = {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false,
mergePaths: false
},
},
},
],
};

0 comments on commit 342b1dc

Please sign in to comment.