summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-12 11:10:56 +0200
committerGitHub <noreply@github.com>2020-07-12 12:10:56 +0300
commit8188176b588264fe0ff8e3f82a623ea007a1af41 (patch)
tree0dd469b25f45c5a40ee62916b40162985753972a /package.json
parent63591016b3ecd79ab1172cd98e2e830a09d6f515 (diff)
downloadgitea-8188176b588264fe0ff8e3f82a623ea007a1af41.tar.gz
gitea-8188176b588264fe0ff8e3f82a623ea007a1af41.zip
Direct SVG rendering (#12157)
Introduce 'make svg' which calls a node script that compiles svg files to `public/img/svg`. These files are vendored to not create a dependency on Node for the backend build. On the frontend side, configure webpack using `raw-loader` so SVGs can be imported as string. Also moved our existing SVGs to web_src/svg for consistency. Fixes: https://github.com/go-gitea/gitea/issues/11618
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 2 insertions, 3 deletions
diff --git a/package.json b/package.json
index 88eab49ea1..a751dd528f 100644
--- a/package.json
+++ b/package.json
@@ -30,9 +30,7 @@
"monaco-editor-webpack-plugin": "1.9.0",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.7.0",
- "svg-sprite-loader": "5.0.0",
- "svgo": "1.3.2",
- "svgo-loader": "2.2.1",
+ "raw-loader": "4.0.1",
"swagger-ui": "3.28.0",
"terser-webpack-plugin": "3.0.6",
"tributejs": "5.1.3",
@@ -56,6 +54,7 @@
"eslint-plugin-unicorn": "20.1.0",
"stylelint": "13.6.1",
"stylelint-config-standard": "20.0.0",
+ "svgo": "1.3.2",
"updates": "10.2.15"
},
"browserslist": [