Title: Sass file import in every component creating duplicate copies of sass file data on run time · Issue #8431 · angular/angular-cli · GitHub
Open Graph Title: Sass file import in every component creating duplicate copies of sass file data on run time · Issue #8431 · angular/angular-cli
X Title: Sass file import in every component creating duplicate copies of sass file data on run time · Issue #8431 · angular/angular-cli
Description: I'm trying to use Sass with angular 4. like this, @import "~assets/css/svg-icons"; Everything works fine. But the problem is, I've to import same sass file in every component individually (In both parent and child components). So on comp...
Open Graph Description: I'm trying to use Sass with angular 4. like this, @import "~assets/css/svg-icons"; Everything works fine. But the problem is, I've to import same sass file in every component individually (In both ...
X Description: I'm trying to use Sass with angular 4. like this, @import "~assets/css/svg-icons"; Everything works fine. But the problem is, I've to import same sass file in every component indi...
Opengraph URL: https://github.com/angular/angular-cli/issues/8431
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sass file import in every component creating duplicate copies of sass file data on run time","articleBody":"I'm trying to use Sass with angular 4. like this, \r\n`@import \"~assets/css/svg-icons\";`\r\n\r\nEverything works fine. But the problem is, I've to import same sass file in every component individually (In both _parent_ and _child_ components). \r\nSo on compile time **angular-cli** injecting complete content of `svg-icons.scss` file, in every component with some attribute appended to all the classes of that file, like `.view-icon[_ngcontent-c1]`, `.view-icon[_ngcontent-c2]`.\r\n\r\nSo, If there is 100 lines of code in `svg-icons.scss`, and If I import it in 10 components, It'll be 1000 lines of duplicated code, which will be injected to `index.html`, on run time. I don't want this duplication of code as this increases the size of the file exponentially. How can I resolve this?","author":{"url":"https://github.com/amareshteja","@type":"Person","name":"amareshteja"},"datePublished":"2017-11-10T05:21:03Z","url":"https://github.com/angular/angular-cli/issues/8431"}
| 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:9cececea-9e9d-e557-b3a7-946d08acb738 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E012:317608:3E1E9BF:4E9DF8F:6B020979 |
| html-safe-nonce | 195805ffb02015ddae378918143740491edbddd7a6a16b5a391a59af5fe5fd54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDEyOjMxNzYwODozRTFFOUJGOjRFOURGOEY6NkIwMjA5NzkiLCJ2aXNpdG9yX2lkIjoiNjgzNDIzMzg3MjUxMTc5NzYyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d70f689174683e4c57ffd62a5acfa7a71e99d8780c5bff5d06933738d800ab1 |
| hovercard-subject-tag | issue:272822632 |
| 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/8431/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16387fa73996ab2f9c51ef9c3d00ff91fda20a6fe023eee1605ba69da963a6cc/angular/angular-cli/issues/8431 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16387fa73996ab2f9c51ef9c3d00ff91fda20a6fe023eee1605ba69da963a6cc/angular/angular-cli/issues/8431 |
| og:image:alt | I'm trying to use Sass with angular 4. like this, @import "~assets/css/svg-icons"; Everything works fine. But the problem is, I've to import same sass file in every component individually (In both ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amareshteja |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width