diff options
author | silverwind <me@silverwind.io> | 2020-02-08 00:03:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-08 00:03:42 +0100 |
commit | 4721d45c2aa9ea7f0587188938ea78bec584c5b6 (patch) | |
tree | d36344d00ea105f983680e1b3e701d7760e010d4 /templates/pwa | |
parent | 0754ceca5b0dc532cc11f7a6fe162dddcc2e7d4f (diff) | |
download | gitea-4721d45c2aa9ea7f0587188938ea78bec584c5b6.tar.gz gitea-4721d45c2aa9ea7f0587188938ea78bec584c5b6.zip |
move clipboard.js to npm/webpack (#10183)
- created lazy-loaded webpack chunk for clipboard.js
- upgraded clipboard.js from 1.5.9 to 2.0.4
- parallelize initialization of all lazy-loaded features
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'templates/pwa')
-rw-r--r-- | templates/pwa/serviceworker_js.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl index 5140cd489b..e7751714f4 100644 --- a/templates/pwa/serviceworker_js.tmpl +++ b/templates/pwa/serviceworker_js.tmpl @@ -2,12 +2,12 @@ var STATIC_CACHE = 'static-cache-v1'; var urlsToCache = [ // js '{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}', + '{{StaticUrlPrefix}}/js/clipboard.js', '{{StaticUrlPrefix}}/js/gitgraph.js', '{{StaticUrlPrefix}}/js/highlight.js', '{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/jquery.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}', - '{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js', '{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js', '{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js', '{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.js', |