TryGhostOSS
    Ghost
    Removed vite-plugin-css-injected-by-js from portal no ref Portal's two top-level CSS imports (`src/app.css`, `src/index.css`) are empty stubs. All real styles flow through `?inline` imports in `src/components/frame.styles.js`, which inject `<style>` tags into the `<head>` of each Portal iframe at runtime — independent of Vite's CSS pipeline. With nothing in the CSS graph to extract, the plugin was guarding against a problem that no longer exists. Vite's library mode already honours `build.cssCodeSplit: false` (kept in this config), so no separate `.css` asset is emitted alongside `portal.min.js`. Verified locally: pre/post `pnpm build` produces a single `umd/portal.min.js` (no `.css` sibling), byte sizes within 21 bytes of each other, iframe style-injection markers unchanged.
    nx run @tryghost/comments-ui:test:acceptance
Succeeded
CI Pipeline Execution

nx run @tryghost/comments-ui:test:acceptance

Click to copy
Linux
4 CPU cores
read-write access token used
fe43c86a28975

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools