Style bundle in not adding angular cli ssr #265

Closed
opened 2025-08-09 17:15:38 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @chamikasandamal on 12/13/2017

I'm just using the template created on #1288. i was not able to include styles bundles for server side rendering. everything looks fine and styles.bundle.js is generated inside the dist-server but it is not adding to the source.
here is the new app created for ssr in cliconfig

{
  "name": "ssr",
  "root": "src",
  "outDir": "dist-server",
  "assets": [
    "assets"
  ],
  "main": "main.server.ts",
  "tsconfig": "tsconfig.server.json",
  "prefix": "app",
  "styles": [
    "./styles/styles.scss"
  ],
  "scripts": [],
  "environmentSource": "environments/environment.ts",
  "environments": {
    "dev": "environments/environment.ts",
    "prod": "environments/environment.prod.ts"
  },
  "platform": "server"
}
*Originally created by @chamikasandamal on 12/13/2017* I'm just using the template created on #1288. i was not able to include styles bundles for server side rendering. everything looks fine and `styles.bundle.js` is generated inside the `dist-server` but it is not adding to the source. here is the new app created for ssr in cliconfig { "name": "ssr", "root": "src", "outDir": "dist-server", "assets": [ "assets" ], "main": "main.server.ts", "tsconfig": "tsconfig.server.json", "prefix": "app", "styles": [ "./styles/styles.scss" ], "scripts": [], "environmentSource": "environments/environment.ts", "environments": { "dev": "environments/environment.ts", "prod": "environments/environment.prod.ts" }, "platform": "server" }
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#265
No description provided.