#36392·nuxt

开发服务器会复制层级 CSS 链接 (@fs + 非 @fs),在应用程序自己的 CSS 之后进行重复加载

作者: Sundwell创建于 2026年9月23日更新于 2026年9月28日
标签4.x

A site app extends a local layer through a pnpm workspace dependency The layer registers global css with css: ['#layers/storefront/...tokens.css'] The app registers its own css that overrides the layer's custom properties on :root In nuxt dev the SSR html head links the layer css twice, once as /_nuxt/@fs/<abs path> and once as /_nuxt/<abs path without @fs>, and the second copy lands after the app's own css