Skip to content

Commit

Permalink
fix: fix css priority in ssr (web-infra-dev#3145)
Browse files Browse the repository at this point in the history
* fix: fix chunk css location in template

* chore: changeset

---------

Co-authored-by: zero <[email protected]>
  • Loading branch information
xuchaobei and zllkjc committed Mar 14, 2023
1 parent 2f4d333 commit 8342319
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/fluffy-masks-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/app-tools': patch
---

fix: fix chunk css location in template
fix: 修复异步加载的 css 在模版文件中的位置
2 changes: 1 addition & 1 deletion packages/solutions/app-tools/src/analyze/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ export const html = (partials: {
</script>
${partials.head.join('\n')}
<!--<?- chunksMap.css ?>-->
</head>
<body>
<!--<?- chunksMap.css ?>-->
<noscript>
We're sorry but react app doesn't work properly without JavaScript enabled. Please enable it to continue.
</noscript>
Expand Down

0 comments on commit 8342319

Please sign in to comment.