Title: feat(webpack): Support to add custom/third party css/sccs · Issue #1459 · angular/angular-cli · GitHub
Open Graph Title: feat(webpack): Support to add custom/third party css/sccs · Issue #1459 · angular/angular-cli
X Title: feat(webpack): Support to add custom/third party css/sccs · Issue #1459 · angular/angular-cli
Description: Version/OS Information: Windows 7 ng --version. angular-cli: local (v1.0.0-beta.10, branch: master) node: 4.4.7 os: win32 x64 Repro steps. This is CLI App. Have few css files/third party css that needs to be included in the app import '....
Open Graph Description: Version/OS Information: Windows 7 ng --version. angular-cli: local (v1.0.0-beta.10, branch: master) node: 4.4.7 os: win32 x64 Repro steps. This is CLI App. Have few css files/third party css that n...
X Description: Version/OS Information: Windows 7 ng --version. angular-cli: local (v1.0.0-beta.10, branch: master) node: 4.4.7 os: win32 x64 Repro steps. This is CLI App. Have few css files/third party css that n...
Opengraph URL: https://github.com/angular/angular-cli/issues/1459
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(webpack): Support to add custom/third party css/sccs","articleBody":"> ## Version/OS Information:\n> 1. Windows 7\n> 2. `ng --version`. \n> angular-cli: local (v1.0.0-beta.10, branch: master) \n> node: 4.4.7 \n> os: win32 x64 \n1. Repro steps. \n This is CLI App. Have few css files/third party css that needs to be included in the app\n\n``` ts\nimport './assets/vendor/paper/bootstrap.min.css';\nimport './assets/vendor/hint.min.css';\n```\n\nHaving above in `polyfill.ts` or `main.ts` has no effect, css are not included at all\n\nAs a workaround for now, I have included this in index.html\n\n``` html\n\u003clink rel=\"stylesheet\" href=\"assets/vendor/paper/bootstrap.min.css\" media=\"screen\">\n\u003clink rel=\"stylesheet\" href=\"assets/vendor/hint.min.css\" media=\"screen\">\n```\n\nThis works fine, but we loose webpack features in this.\n\nExpectation: webpack starters support including css using import, It is expected that cli supports the same behaviour\n\n**Important:**\nI also have `app.scss` which is common styles for app, due this limitation I cannot include it, for now as a workaround, I have added this in app.component as below\n\n``` ts\n styleUrls: ['app.component.scss'],\n encapsulation: ViewEncapsulation.None\n```\n\nThis way I have app.scss available for whole app, but this is clearly a hack\n\nPS: No error in logs\n","author":{"url":"https://github.com/sirajc","@type":"Person","name":"sirajc"},"datePublished":"2016-07-27T10:49:40Z","url":"https://github.com/angular/angular-cli/issues/1459"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1fb49c3a-96be-1587-de74-525002c8ccf5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1D2:2F93F4:1306BDB:1A116F9:6B056BE2 |
| html-safe-nonce | 69cae2daf39235c6f961932ac7953a4670f844fd18d91ac7257715e68a3153ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUQyOjJGOTNGNDoxMzA2QkRCOjFBMTE2Rjk6NkIwNTZCRTIiLCJ2aXNpdG9yX2lkIjoiODcyMjQwNjc3NzM0NjczMzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 578f9fd8aa281c49f4b9ac007113eeaf277be4a4b0b41d0aac8755e08a11cf26 |
| hovercard-subject-tag | issue:167825490 |
| 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/1459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d824784b381a3be8f805d769ac649bad43c63028829612d40ffd5c2ccb723df9/angular/angular-cli/issues/1459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d824784b381a3be8f805d769ac649bad43c63028829612d40ffd5c2ccb723df9/angular/angular-cli/issues/1459 |
| og:image:alt | Version/OS Information: Windows 7 ng --version. angular-cli: local (v1.0.0-beta.10, branch: master) node: 4.4.7 os: win32 x64 Repro steps. This is CLI App. Have few css files/third party css that n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sirajc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c |
| 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 | f089e689ad324655ac44bf6cdbc04d976105b374 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width