diff options
author | silverwind <me@silverwind.io> | 2020-01-25 09:41:34 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-25 16:41:34 +0800 |
commit | 5b17bb8f3dbc180c72446000d82ba06fd7349dc7 (patch) | |
tree | f75eda7a6b1094a239769e8c4d7b9bbc010d1f07 /templates/swagger/ui.tmpl | |
parent | 89f7dcb13d8cc8be9615004a2ce5a476c14bc8e6 (diff) | |
download | gitea-5b17bb8f3dbc180c72446000d82ba06fd7349dc7.tar.gz gitea-5b17bb8f3dbc180c72446000d82ba06fd7349dc7.zip |
add css extraction and minification to webpack (#9944)
This changes the CSS output of webpack to output to the public/css
directory instead of inling CSS in JS. This enables CSS minification and
autoprefixer based on browserslist which would otherwise not be
possible.
The result of this change is two new output files currently:
- public/css/swagger.css
- public/css/gitgraph.css
Co-authored-by: techknowlogick <matti@mdranta.net>
Diffstat (limited to 'templates/swagger/ui.tmpl')
-rw-r--r-- | templates/swagger/ui.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl index 41ed06e7f6..9072b49a37 100644 --- a/templates/swagger/ui.tmpl +++ b/templates/swagger/ui.tmpl @@ -3,6 +3,7 @@ <head> <meta charset="UTF-8"> <title>Gitea API</title> + <link href="{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}" rel="stylesheet"> <style> html { box-sizing: border-box; |