Title: CSS images with relative path not included in production build · Issue #4806 · angular/angular-cli · GitHub
Open Graph Title: CSS images with relative path not included in production build · Issue #4806 · angular/angular-cli
X Title: CSS images with relative path not included in production build · Issue #4806 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 10 Versions. 1.0.0-beta.32.3 Repro steps. Create new app with ng new. Add an image anywhere outside the app directory, e.g. in the assets directory. Reference this image from ...
Open Graph Description: Please provide us with the following information: OS? Windows 10 Versions. 1.0.0-beta.32.3 Repro steps. Create new app with ng new. Add an image anywhere outside the app directory, e.g. in the asse...
X Description: Please provide us with the following information: OS? Windows 10 Versions. 1.0.0-beta.32.3 Repro steps. Create new app with ng new. Add an image anywhere outside the app directory, e.g. in the asse...
Opengraph URL: https://github.com/angular/angular-cli/issues/4806
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS images with relative path not included in production build","articleBody":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\n> Windows 10\r\n\r\n\r\n### Versions.\r\n> 1.0.0-beta.32.3\r\n\r\n\r\n### Repro steps.\r\n> 1. Create new app with `ng new`.\r\n> 2. Add an image anywhere outside the `app` directory, e.g. in the `assets` directory.\r\n> 3. Reference this image from the `app.component.css`, using a relative path.\r\n> Example: `background-image: url(../assets/some_image.png)`\r\n> 4. Do the following: `ng build --prod`.\r\n> 5. Verify that the image is _not_ copied along with the CSS in the build output, meaning the image reference is now broken.\r\n\r\n\r\n### The log given by the failure.\r\n> N/A\r\n\r\n\r\n### Mention any other details that might be useful.\r\n> The image is correctly copied if doing `ng build` without the `--prod` switch.\r\n\r\n\r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n","author":{"url":"https://github.com/arntj","@type":"Person","name":"arntj"},"datePublished":"2017-02-18T08:42:33Z","url":"https://github.com/angular/angular-cli/issues/4806"}
| 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:ee558b28-afc0-f212-db98-51d4e1f0be3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80F6:2A7C1C:1ACC4BB:2362A28:6B021B6F |
| html-safe-nonce | b7313019d1a5b467fae304391aed38839ead152cb3bfa98461609464e2a14bd1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEY2OjJBN0MxQzoxQUNDNEJCOjIzNjJBMjg6NkIwMjFCNkYiLCJ2aXNpdG9yX2lkIjoiNjM3NjkzNzk0OTkwODU3MzA0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 75c84a2ff8d90ebafd31192d26917ce761c80dac944e6bb749211096caa13a7f |
| hovercard-subject-tag | issue:208625432 |
| 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/4806/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00b3023ad06adbd2c1495a230848412e0540b654f07defd532d51e9372956bd8/angular/angular-cli/issues/4806 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00b3023ad06adbd2c1495a230848412e0540b654f07defd532d51e9372956bd8/angular/angular-cli/issues/4806 |
| og:image:alt | Please provide us with the following information: OS? Windows 10 Versions. 1.0.0-beta.32.3 Repro steps. Create new app with ng new. Add an image anywhere outside the app directory, e.g. in the asse... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arntj |
| 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