Skip to content

Commit

Permalink
Merge pull request #93 from infor-design/add-option-to-svgo
Browse files Browse the repository at this point in the history
Add options to svgo
  • Loading branch information
nickwynja authored Mar 28, 2018
2 parents c7cf8cf + 0cd0dbe commit cec78af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infor/ids-identity",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"description": "Infor Design System Design Assets",
"scripts": {
"build": "npm run clean && npm run build:icons && npm run build:tokens:web && npm run build:font",
Expand Down
6 changes: 5 additions & 1 deletion scripts/node/generate-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ function checkSketchTool() {
*/
function optimizeSVGs() {
swLog.logTaskStart('optimize svgs');
const svgoOptimize = new svgo();
const svgoOptimize = new svgo({
plugins: [
{ removeViewBox: false }
]
});

return glob.readdir(`${OUTPUT_DIR}/*.svg`, (err, files) => {
if (err) {
Expand Down

0 comments on commit cec78af

Please sign in to comment.