Title: Ng generate doesn't create css files when -sw is used to create the project · Issue #10722 · angular/angular-cli · GitHub
Open Graph Title: Ng generate doesn't create css files when -sw is used to create the project · Issue #10722 · angular/angular-cli
X Title: Ng generate doesn't create css files when -sw is used to create the project · Issue #10722 · angular/angular-cli
Description: Versions Angular CLI: 6.0.0 Node: 8.10.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router Package Version ----...
Open Graph Description: Versions Angular CLI: 6.0.0 Node: 8.10.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-brow...
X Description: Versions Angular CLI: 6.0.0 Node: 8.10.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-brow...
Opengraph URL: https://github.com/angular/angular-cli/issues/10722
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ng generate doesn't create css files when -sw is used to create the project","articleBody":"\r\n### Versions\r\n```\r\n\r\nAngular CLI: 6.0.0\r\nNode: 8.10.0\r\nOS: win32 x64\r\nAngular: 6.0.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.6.0\r\n@angular-devkit/build-angular 0.6.0\r\n@angular-devkit/build-optimizer 0.6.0\r\n@angular-devkit/core 0.6.0\r\n@angular-devkit/schematics 0.6.0\r\n@ngtools/webpack 6.0.0\r\n@schematics/angular 0.6.0\r\n@schematics/update 0.6.0\r\nrxjs 6.1.0\r\ntypescript 2.7.2\r\nwebpack 4.6.0```\r\n\r\n### Repro steps\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n--\u003e\r\n* ng new name-of-project -sw\r\n* cd name-of-project\r\n* ng generate component name-of-component\r\n```\r\n\r\n### Observed behavior\r\n```\r\nCREATE src/app/name-of-component/name-of-component.component.html (36 bytes)\r\nCREATE src/app/name-of-component/name-of-component.component.spec.ts (693 bytes)\r\nCREATE src/app/name-of-component/name-of-component.component.ts (273 bytes)\r\nUPDATE src/app/app.module.ts (518 bytes)\r\n\r\nIt doesn't create the css file\r\n```\r\n\r\n### Desired behavior\r\n```CREATE src/app/name-of-component/name-of-component.component.html (36 bytes)\r\nCREATE src/app/name-of-component/name-of-component.component.spec.ts (693 bytes)\r\nCREATE src/app/name-of-component/name-of-component.component.ts (311 bytes)\r\nCREATE src/app/name-of-component/name-of-component.component.css (0 bytes)\r\nUPDATE src/app/app.module.ts (518 bytes)\r\n\r\nWhen I use generate component expect to get a whole new component, but this is like if i used a flag for create styles in the .ts file\r\n```\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/judasane","@type":"Person","name":"judasane"},"datePublished":"2018-05-08T09:55:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10722/angular-cli/issues/10722"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f57fc517-2fd4-4402-9387-d084b7a965f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE2E:16FF30:277149:3646F8:69823F97 |
| html-safe-nonce | 0cb3fa0616e61455b96c4d02fc252851821d9a36042dec09eee9fb9bc9cf7f4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTJFOjE2RkYzMDoyNzcxNDk6MzY0NkY4OjY5ODIzRjk3IiwidmlzaXRvcl9pZCI6IjgxODgwNDE2NDA0NTYzNzIxMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 663bf7b3c9a0b1b7d21f256fff0f3ac288ac6705371b36ea20d88c680d22bb2e |
| hovercard-subject-tag | issue:321118775 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/10722/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8bbb7cfd372210336c45c56a6c52583a92fc4b8816c4c0c9b5a854384718b101/angular/angular-cli/issues/10722 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8bbb7cfd372210336c45c56a6c52583a92fc4b8816c4c0c9b5a854384718b101/angular/angular-cli/issues/10722 |
| og:image:alt | Versions Angular CLI: 6.0.0 Node: 8.10.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-brow... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | judasane |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9135c12c87e8ba63197821abe054b7c0a2842a97636ee220df564bb0788e556d |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 43c4df4df458d3c3f6a23d91be88780178a97bdc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width