refactor: svg icons (#1096)

* refactor svg

* add svgo

* refine

* add tree.svg

* add svg.yml
This commit is contained in:
花裤衩
2018-09-17 13:07:11 +08:00
committed by GitHub
parent 11163146c0
commit 24602755cd
45 changed files with 72 additions and 50 deletions

View File

@@ -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 --config=src/icons/svgo.yml"
},
"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",