-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
css styles not applied after building #561
Comments
also pwa and icon modules don't work at all |
The manifest at This is in turn caused by |
FWIW, I managed to fix the problem by the following pnpm patch diff --git a/dist/node/chunks/dep-4da11a5e.js b/dist/node/chunks/dep-4da11a5e.js
index ef2d5d810506e20169239232d9972f1adf9bcdd8..114693e1473f068b95f016efa096ddf992521413 100644
--- a/dist/node/chunks/dep-4da11a5e.js
+++ b/dist/node/chunks/dep-4da11a5e.js
@@ -44284,7 +44284,7 @@ function cssPostPlugin(config) {
// this is a shared CSS-only chunk that is empty.
pureCssChunks.add(chunk.fileName);
}
- if (opts.format === 'es' || opts.format === 'cjs') {
+ if (opts.format === 'es' || opts.format === 'cjs' || opts.format === 'system') {
const cssAssetName = chunk.facadeModuleId
? normalizePath$3(path$n.relative(config.root, chunk.facadeModuleId))
: chunk.name; With that, If someone has time to come up with a minimal reproduction repo, please open an upstream issue. |
I suspect the actual fix would be serving modern format scripts in addition to legacy (#15), and pull css information from modern format chunks. |
Note that upgrading vite to 3.2.x makes it work (thanks to vitejs/vite#10496), however it leads to FOUC because styles are inlined rather than injected via |
Any news on this one? Running a new nuxt 2 + bridge build, it seems that global css styles aren't applied |
#561 (comment) helps both with 3.1.x and 3.2.x |
Is this still occurring? If so, please provide a reproduction 🙏 |
Repo:https://github.com/AndreyYolkin/bridge-missing-css Dev:Prod:Output: |
Resolved by #1164 |
Environment
Windows_NT
v16.17.0
2.16.0-27720022.54e852f
0.5.4
npm@8.19.2
vite
bridge
,vite
,css
,plugins
,components
,buildModules
,modules
,pwa
,build
,serverHandlers
,devServerHandlers
-
()
,@nuxt/bridge@3.0.0-27737014.fcf636d
Reproduction
https://stackblitz.com/edit/nuxt-starter-y8k5hw?file=nuxt.config.js
Describe the bug
in dev mode, all styles from
nuxt.config.js
>css
applied as well.after building the project, css files not loaded.
Additional context
this bug appears after
3.0.0-27736739.990b28d
version released.Logs
No response
The text was updated successfully, but these errors were encountered: