Title: .scss files not processed from index.html · Issue #1787 · angular/angular-cli · GitHub
Open Graph Title: .scss files not processed from index.html · Issue #1787 · angular/angular-cli
X Title: .scss files not processed from index.html · Issue #1787 · angular/angular-cli
Description: Bug Report .scss files aren't processed to css when included via link tag in index.html (this would be useful for global styles: e.g. styling the body as this doesn't seem to work in the default app.component.css) Expected Behavior .scss...
Open Graph Description: Bug Report .scss files aren't processed to css when included via link tag in index.html (this would be useful for global styles: e.g. styling the body as this doesn't seem to work in the default ap...
X Description: Bug Report .scss files aren't processed to css when included via link tag in index.html (this would be useful for global styles: e.g. styling the body as this doesn't seem to work in the de...
Opengraph URL: https://github.com/angular/angular-cli/issues/1787
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":".scss files not processed from index.html","articleBody":"## Bug Report\n\n.scss files aren't processed to css when included via link tag in index.html\n\n(this would be useful for global styles: e.g. styling the body as this doesn't seem to work in the default app.component.css)\n## Expected Behavior\n\n.scss files are processed to css if they are included via a link tag in the index.html file.\n## Actual Behavior\n\n.scss files aren't processed in index.html\n## Reproduction\n- Create a new project\n\n`ng new project-name --prefix pn`\n- Add .scss support\n\n`ng set defaults.styleExt scss`\n- Add link to index.html\n\n```\n\u003chead>\n\u003c!-- other things -->\n\n\u003c!-- This could work if webpack were configured to check if theme.css exists; if not, then check for theme.scss and process that -->\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"theme.css\">\n\n\n\u003c!-- This doesn't work either.\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"theme.scss\">\n-->\n\u003c/head>\n```\n- Create theme.scss\n\n```\n@import './variables'\n\nbody {\nbackground-color: $bg-color;\n}\n```\n- Create variables.scss\n\n`$bg-color: red;`\n- Serve\n\n`ng serve`\n## Version details:\n\nOS: Windows 10\nnode: 6.3.1\nangular-cli@1.0.0-beta.11-webpack.2\n","author":{"url":"https://github.com/PiusNyakoojo","@type":"Person","name":"PiusNyakoojo"},"datePublished":"2016-08-21T07:28:49Z","url":"https://github.com/angular/angular-cli/issues/1787"}
| 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:435d2708-0091-d157-95b5-a7e489dcdca5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BBE:B4606:11ABA3E:186BCFF:6B056BDA |
| html-safe-nonce | 488ba6bbfa7d288325b1660f9c5cac2a343e52f1946e9e2a4da19341c05ca74b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkJFOkI0NjA2OjExQUJBM0U6MTg2QkNGRjo2QjA1NkJEQSIsInZpc2l0b3JfaWQiOiI4MDA1MzEzNjc0MjEyNjMzNTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bbc90ffd1e28ef84394021d5e410627b798b73673f6cec5b16e2d4ac3632f4ca |
| hovercard-subject-tag | issue:172309055 |
| 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/1787/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6dc46d894b20aab64d835ef7b3f33b1d74865ce8fb80d34722cf3c3797d6d7db/angular/angular-cli/issues/1787 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6dc46d894b20aab64d835ef7b3f33b1d74865ce8fb80d34722cf3c3797d6d7db/angular/angular-cli/issues/1787 |
| og:image:alt | Bug Report .scss files aren't processed to css when included via link tag in index.html (this would be useful for global styles: e.g. styling the body as this doesn't seem to work in the default ap... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PiusNyakoojo |
| 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