Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Webpack ESM output and move assets to /assets/ without subdirectories #25940

Closed
wants to merge 28 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
925a3f3
Enable Webpack ESM output and move to /static/ asset directory
silverwind Jul 17, 2023
564361e
fix WEBPACK_DEST
silverwind Jul 17, 2023
098a72c
fix WEBPACK_DEST_ENTRIES
silverwind Jul 17, 2023
e42d45a
move import
silverwind Jul 17, 2023
67a46fd
Update web_src/js/bootstrap.js
silverwind Jul 18, 2023
6c9bf21
Merge branch 'main' into static
silverwind Jul 18, 2023
f4b9927
devtest fixes
silverwind Jul 18, 2023
6ab4848
output assets directly to /assets/
silverwind Jul 20, 2023
167c0d0
remove WEBPACK_DEST_ENTRIES
silverwind Jul 20, 2023
1fa9115
add back webpack asset cleaning in clean-all
silverwind Jul 20, 2023
010607c
use eval for performance
silverwind Jul 20, 2023
9d6097a
load bootstrap in devtest as well
silverwind Jul 20, 2023
8aefb87
Merge branch 'main' into static
silverwind Jul 20, 2023
5ccb1d4
Merge branch 'main' into static
silverwind Jul 29, 2023
174342b
use Proxy
silverwind Jul 29, 2023
06c1bf3
Merge branch 'main' into static
silverwind Jul 29, 2023
4566d00
update comment
silverwind Jul 29, 2023
47fb741
fix typo
silverwind Jul 29, 2023
c9ef48a
return true from proxy handler
silverwind Jul 29, 2023
bd0bf1d
improve proxy
silverwind Jul 29, 2023
c3fde7e
remove duplicate imports, modal error unresolved
silverwind Jul 29, 2023
b6d4af7
remove separate devtest chunk
silverwind Jul 29, 2023
d58fd74
avoid flicker in devtest
silverwind Jul 29, 2023
449d640
fix lint
silverwind Jul 29, 2023
178538c
load webcomponents as non-module
silverwind Jul 29, 2023
ee3484d
add comment
silverwind Jul 29, 2023
0ede200
update comment
silverwind Jul 29, 2023
48ca34c
use separate chunk for devtest css
silverwind Jul 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
load webcomponents as non-module
  • Loading branch information
silverwind committed Jul 29, 2023
commit 178538c4218c50c4a188d80394640af4414bd3ff
3 changes: 2 additions & 1 deletion templates/base/head_script.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
{{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}}
window.config.pageData = window.config.pageData || {};
</script>
<script type="module" src="{{AssetUrlPrefix}}/webcomponents.js?v={{AssetVersion}}"></script>
{{/* not using type=module to avoid flicker */}}
<script src="{{AssetUrlPrefix}}/webcomponents.js?v={{AssetVersion}}"></script>
Loading