diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-21 13:17:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 13:17:58 +0800 |
commit | 5cf241b3123a6096076a9cb582d28fb8919969e0 (patch) | |
tree | b89ebb827c7feb81a63a605c4d641a9886db0e04 /templates/pwa | |
parent | e7322a1138ec0285091abbfc51e3ac1d47ae0fb2 (diff) | |
download | gitea-5cf241b3123a6096076a9cb582d28fb8919969e0.tar.gz gitea-5cf241b3123a6096076a9cb582d28fb8919969e0.zip |
Use npm to manage fomantic and only build needed components (#9561)
* Use npm to manage fomantic
* Only build needed semantic components
* Fix make
* Don't import fonts from google sites since we have loaded
* [misc] devendor fomantic-ui and rebuild upon src or config changes only
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Change sort alphabetically of semantic components
* Fix trailing slash
* fix makefile
* Remove dependency to gulp from package.json
* Fix something
* Simplife the makefile
* add missed fomantic compnent
Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
Diffstat (limited to 'templates/pwa')
-rw-r--r-- | templates/pwa/serviceworker_js.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl index 9595d8f267..04b4f451c4 100644 --- a/templates/pwa/serviceworker_js.tmpl +++ b/templates/pwa/serviceworker_js.tmpl @@ -4,7 +4,7 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js', '{{StaticUrlPrefix}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1', '{{StaticUrlPrefix}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1', - '{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.js?v={{MD5 AppVer}}', + '{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/gitgraph.js?v={{MD5 AppVer}}', @@ -26,7 +26,7 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/vendor/assets/octicons/octicons.min.css', '{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css', '{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.css', - '{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.css?v={{MD5 AppVer}}', + '{{StaticUrlPrefix}}/fomantic/semantic.min.css?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/vendor/plugins/highlight/github.css', '{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css', |