From bb9864bfd77bfc26b6ce8a5e92afccfd4d2d15e3 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 12 Sep 2018 13:27:23 +0800 Subject: [PATCH] add svgo --- package.json | 4 +++- src/icons/svg/404.svg | 13 +------------ src/icons/svg/bug.svg | 13 +------------ src/icons/svg/chart.svg | 13 +------------ src/icons/svg/clipboard.svg | 13 +------------ src/icons/svg/component.svg | 13 +------------ src/icons/svg/dashboard.svg | 13 +------------ src/icons/svg/documentation.svg | 13 +------------ src/icons/svg/drag.svg | 13 +------------ src/icons/svg/edit.svg | 16 +--------------- src/icons/svg/email.svg | 16 +--------------- src/icons/svg/example.svg | 18 +----------------- src/icons/svg/excel.svg | 16 +--------------- src/icons/svg/eye.svg | 13 +------------ src/icons/svg/form.svg | 13 +------------ src/icons/svg/guide.svg | 13 +------------ src/icons/svg/icon.svg | 13 +------------ src/icons/svg/international.svg | 13 +------------ src/icons/svg/language.svg | 16 +--------------- src/icons/svg/link.svg | 17 +---------------- src/icons/svg/list.svg | 20 +------------------- src/icons/svg/lock.svg | 13 +------------ src/icons/svg/message.svg | 13 +------------ src/icons/svg/money.svg | 13 +------------ src/icons/svg/nested.svg | 13 +------------ src/icons/svg/password.svg | 13 +------------ src/icons/svg/people.svg | 13 +------------ src/icons/svg/peoples.svg | 16 +--------------- src/icons/svg/qq.svg | 13 +------------ src/icons/svg/shopping.svg | 13 +------------ src/icons/svg/size.svg | 13 +------------ src/icons/svg/star.svg | 13 +------------ src/icons/svg/tab.svg | 13 +------------ src/icons/svg/table.svg | 28 +--------------------------- src/icons/svg/theme.svg | 13 +------------ src/icons/svg/user.svg | 13 +------------ src/icons/svg/wechat.svg | 16 +--------------- src/icons/svg/zip.svg | 15 +-------------- 38 files changed, 40 insertions(+), 496 deletions(-) diff --git a/package.json b/package.json index fa817767..ed9349ce 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js", "lint": "eslint --ext .js,.vue src", "test": "npm run lint", - "precommit": "lint-staged" + "precommit": "lint-staged", + "svgo": "svgo -f src/icons/svg --enable=removeUselessStrokeAndFill" }, "lint-staged": { "src/**/*.{js,vue}": [ @@ -105,6 +106,7 @@ "serve-static": "1.13.2", "shelljs": "0.8.2", "svg-sprite-loader": "3.8.0", + "svgo": "1.0.5", "uglifyjs-webpack-plugin": "1.2.7", "url-loader": "1.0.1", "vue-loader": "15.3.0", diff --git a/src/icons/svg/404.svg b/src/icons/svg/404.svg index 04899682..d3be1a16 100644 --- a/src/icons/svg/404.svg +++ b/src/icons/svg/404.svg @@ -1,12 +1 @@ - - - - 404 - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/bug.svg b/src/icons/svg/bug.svg index 888c1478..372711e9 100644 --- a/src/icons/svg/bug.svg +++ b/src/icons/svg/bug.svg @@ -1,12 +1 @@ - - - - bug - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/chart.svg b/src/icons/svg/chart.svg index 02f47370..1fd9cf5e 100644 --- a/src/icons/svg/chart.svg +++ b/src/icons/svg/chart.svg @@ -1,12 +1 @@ - - - - chart - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/clipboard.svg b/src/icons/svg/clipboard.svg index f5c70870..a03efc5c 100644 --- a/src/icons/svg/clipboard.svg +++ b/src/icons/svg/clipboard.svg @@ -1,12 +1 @@ - - - - clipboard - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/component.svg b/src/icons/svg/component.svg index 40f88943..578f4b66 100644 --- a/src/icons/svg/component.svg +++ b/src/icons/svg/component.svg @@ -1,12 +1 @@ - - - - component - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/dashboard.svg b/src/icons/svg/dashboard.svg index 55b1cfcf..0ff9322e 100644 --- a/src/icons/svg/dashboard.svg +++ b/src/icons/svg/dashboard.svg @@ -1,12 +1 @@ - - - - dashboard - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/documentation.svg b/src/icons/svg/documentation.svg index 9354049e..8d335433 100644 --- a/src/icons/svg/documentation.svg +++ b/src/icons/svg/documentation.svg @@ -1,12 +1 @@ - - - - documentation - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/drag.svg b/src/icons/svg/drag.svg index 1ccb56e2..d4e2d5e8 100644 --- a/src/icons/svg/drag.svg +++ b/src/icons/svg/drag.svg @@ -1,12 +1 @@ - - - - drag - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/edit.svg b/src/icons/svg/edit.svg index 43254ed7..0dd81d5d 100644 --- a/src/icons/svg/edit.svg +++ b/src/icons/svg/edit.svg @@ -1,15 +1 @@ - - - - edit - Created with Sketch. - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/email.svg b/src/icons/svg/email.svg index 315cc579..bf4dde52 100644 --- a/src/icons/svg/email.svg +++ b/src/icons/svg/email.svg @@ -1,15 +1 @@ - - - - email - Created with Sketch. - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/example.svg b/src/icons/svg/example.svg index b11c6e5e..d29f3ffb 100644 --- a/src/icons/svg/example.svg +++ b/src/icons/svg/example.svg @@ -1,17 +1 @@ - - - - example - Created with Sketch. - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/excel.svg b/src/icons/svg/excel.svg index bd6457ac..9b2aef83 100644 --- a/src/icons/svg/excel.svg +++ b/src/icons/svg/excel.svg @@ -1,15 +1 @@ - - - - excel - Created with Sketch. - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/eye.svg b/src/icons/svg/eye.svg index 8c2b630b..7a2adda3 100644 --- a/src/icons/svg/eye.svg +++ b/src/icons/svg/eye.svg @@ -1,12 +1 @@ - - - - eye - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/form.svg b/src/icons/svg/form.svg index 64e09fa2..bccdd4e2 100644 --- a/src/icons/svg/form.svg +++ b/src/icons/svg/form.svg @@ -1,12 +1 @@ - - - - form - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/guide.svg b/src/icons/svg/guide.svg index c5ae95de..e4543728 100644 --- a/src/icons/svg/guide.svg +++ b/src/icons/svg/guide.svg @@ -1,12 +1 @@ - - - - guide - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/icon.svg b/src/icons/svg/icon.svg index bcab88c3..96b4cc1c 100644 --- a/src/icons/svg/icon.svg +++ b/src/icons/svg/icon.svg @@ -1,12 +1 @@ - - - - icon - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/international.svg b/src/icons/svg/international.svg index c1a0fac5..4b72667b 100644 --- a/src/icons/svg/international.svg +++ b/src/icons/svg/international.svg @@ -1,12 +1 @@ - - - - international - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/language.svg b/src/icons/svg/language.svg index a8806092..397d9698 100644 --- a/src/icons/svg/language.svg +++ b/src/icons/svg/language.svg @@ -1,15 +1 @@ - - - - language - Created with Sketch. - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/link.svg b/src/icons/svg/link.svg index e898b792..21c9c30e 100644 --- a/src/icons/svg/link.svg +++ b/src/icons/svg/link.svg @@ -1,16 +1 @@ - - - - link - Created with Sketch. - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/list.svg b/src/icons/svg/list.svg index b0d8ac84..79389ad3 100644 --- a/src/icons/svg/list.svg +++ b/src/icons/svg/list.svg @@ -1,19 +1 @@ - - - - list - Created with Sketch. - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/lock.svg b/src/icons/svg/lock.svg index 653af7fe..5abb13ac 100644 --- a/src/icons/svg/lock.svg +++ b/src/icons/svg/lock.svg @@ -1,12 +1 @@ - - - - lock - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/message.svg b/src/icons/svg/message.svg index ba729408..01540bd4 100644 --- a/src/icons/svg/message.svg +++ b/src/icons/svg/message.svg @@ -1,12 +1 @@ - - - - message - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/money.svg b/src/icons/svg/money.svg index a9a91e6b..16a2a611 100644 --- a/src/icons/svg/money.svg +++ b/src/icons/svg/money.svg @@ -1,12 +1 @@ - - - - money - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/nested.svg b/src/icons/svg/nested.svg index 9eb8a034..b30a7267 100644 --- a/src/icons/svg/nested.svg +++ b/src/icons/svg/nested.svg @@ -1,12 +1 @@ - - - - nested - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/password.svg b/src/icons/svg/password.svg index ca9cb6ec..32669193 100644 --- a/src/icons/svg/password.svg +++ b/src/icons/svg/password.svg @@ -1,12 +1 @@ - - - - password - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/people.svg b/src/icons/svg/people.svg index 6e61c9e3..f28bf11f 100644 --- a/src/icons/svg/people.svg +++ b/src/icons/svg/people.svg @@ -1,12 +1 @@ - - - - people - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/peoples.svg b/src/icons/svg/peoples.svg index 3ac8a6b6..68b02a54 100644 --- a/src/icons/svg/peoples.svg +++ b/src/icons/svg/peoples.svg @@ -1,15 +1 @@ - - - - peoples - Created with Sketch. - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/qq.svg b/src/icons/svg/qq.svg index 60142d5b..c2e1b428 100644 --- a/src/icons/svg/qq.svg +++ b/src/icons/svg/qq.svg @@ -1,12 +1 @@ - - - - qq - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/shopping.svg b/src/icons/svg/shopping.svg index fe26da69..362f5d1d 100644 --- a/src/icons/svg/shopping.svg +++ b/src/icons/svg/shopping.svg @@ -1,12 +1 @@ - - - - Shape - Created with Sketch. - - - - - - - + \ No newline at end of file diff --git a/src/icons/svg/size.svg b/src/icons/svg/size.svg index 86992c30..a654d4d0 100644 --- a/src/icons/svg/size.svg +++ b/src/icons/svg/size.svg @@ -1,12 +1 @@ - - - - size - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/star.svg b/src/icons/svg/star.svg index 6b34aac1..7cfe252b 100644 --- a/src/icons/svg/star.svg +++ b/src/icons/svg/star.svg @@ -1,12 +1 @@ - - - - star - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/tab.svg b/src/icons/svg/tab.svg index 2de504e5..952412de 100644 --- a/src/icons/svg/tab.svg +++ b/src/icons/svg/tab.svg @@ -1,12 +1 @@ - - - - tab - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/table.svg b/src/icons/svg/table.svg index ca1f97a7..b5467095 100644 --- a/src/icons/svg/table.svg +++ b/src/icons/svg/table.svg @@ -1,27 +1 @@ - - - - table - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/theme.svg b/src/icons/svg/theme.svg index e3fdefd2..b3ad860a 100644 --- a/src/icons/svg/theme.svg +++ b/src/icons/svg/theme.svg @@ -1,12 +1 @@ - - - - theme - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/user.svg b/src/icons/svg/user.svg index f7580766..80e0e181 100644 --- a/src/icons/svg/user.svg +++ b/src/icons/svg/user.svg @@ -1,12 +1 @@ - - - - user - Created with Sketch. - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/wechat.svg b/src/icons/svg/wechat.svg index 9efa512c..0634bd1d 100644 --- a/src/icons/svg/wechat.svg +++ b/src/icons/svg/wechat.svg @@ -1,15 +1 @@ - - - - wechat - Created with Sketch. - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/zip.svg b/src/icons/svg/zip.svg index 41c768e8..93be1464 100644 --- a/src/icons/svg/zip.svg +++ b/src/icons/svg/zip.svg @@ -1,14 +1 @@ - - - - zip - Created with Sketch. - - - - - - - - - \ No newline at end of file + \ No newline at end of file