Title: Feature Request: Copy assets outside of src folder (e.g. node_modules) · Issue #3555 · angular/angular-cli · GitHub
Open Graph Title: Feature Request: Copy assets outside of src folder (e.g. node_modules) · Issue #3555 · angular/angular-cli
X Title: Feature Request: Copy assets outside of src folder (e.g. node_modules) · Issue #3555 · angular/angular-cli
Description: So this is a feature request for ability to copy assets from different folders of the project, e.g. node_modules etc. Currently it doesn't seem to be supported even if you'll specify this: angular-cli.json "assets": [ "assets", "../logo....
Open Graph Description: So this is a feature request for ability to copy assets from different folders of the project, e.g. node_modules etc. Currently it doesn't seem to be supported even if you'll specify this: angular-...
X Description: So this is a feature request for ability to copy assets from different folders of the project, e.g. node_modules etc. Currently it doesn't seem to be supported even if you'll specify this: ...
Opengraph URL: https://github.com/angular/angular-cli/issues/3555
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Copy assets outside of src folder (e.g. node_modules)","articleBody":"So this is a feature request for ability to copy assets from different folders of the project, e.g. ```node_modules``` etc. Currently it doesn't seem to be supported even if you'll specify this:\r\n\r\n```angular-cli.json```\r\n```\r\n \"assets\": [\r\n \"assets\",\r\n \"../logo.png\",\r\n \"../node_modules/third-party/cool.svg\"\r\n ],\r\n```\r\n\r\nIt's actually common use case, when you need to copy assets from third-party modules from ```node_modules```\r\n\r\nBelow you can see additional information about cli and steps to reproduce:\r\n\r\n### OS?\r\n> Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\n```macOS Sierra 10.12.1```\r\n\r\n### Versions.\r\n> Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\r\n```\r\nangular-cli: 1.0.0-beta.21\r\nnode: 7.2.1\r\nos: darwin x64\r\n```\r\n\r\n### Repro steps.\r\n> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\r\nTo reproduce this issue just try to copy file one level up of src folder or explicitly from ```node_modules```\r\n\r\n### Stack trace\r\n1. If you'll specify asset as \r\n```\r\n \"assets\": [\r\n \"assets\",\r\n \"../node_modules/bootstrap-theme/svg/sprite-symbol.svg\"\r\n ]\r\n```\r\nyou won't see any stack trace, all good, but file won't be copied\r\n\r\n1. If you'll specify asset as \r\n```\r\n \"assets\": [\r\n \"assets\",\r\n \"node_modules/bootstrap-theme/svg/sprite-symbol.svg\"\r\n ]\r\n```\r\n\r\n```\r\nENOENT: no such file or directory, stat '/Users/serhiisol/Development/test-app/src/node_modules/bootstrap-theme/svg/sprite-symbol.svg'\r\nError: ENOENT: no such file or directory, stat #'/Users/serhiisol/Development/test-app/src/node_modules/bootstrap-theme/svg/sprite-symbol.svg'\r\n at Object.fs.statSync (fs.js:906:18)\r\n```\r\n\r\n\r\n### Mention any other details that might be useful.\r\nWhat if you want to include assets from node_modules, which seems like a fairly common use case","author":{"url":"https://github.com/serhiisol","@type":"Person","name":"serhiisol"},"datePublished":"2016-12-14T11:14:16Z","url":"https://github.com/angular/angular-cli/issues/3555"}
| 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:96c96638-1a10-4680-f311-5563e74c1342 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC20:10F057:2EB8EF:3D680A:6B023331 |
| html-safe-nonce | 317029d209d447e93803c7293f1a74d903312ed0446bcdb62d7701754fa709f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzIwOjEwRjA1NzoyRUI4RUY6M0Q2ODBBOjZCMDIzMzMxIiwidmlzaXRvcl9pZCI6Ijk4MDI0NTczMDcwMDcwMjUxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c9612caa897dfc4cc0830f510da08bd1d7f1281d83c134223400d0065ef9e072 |
| hovercard-subject-tag | issue:195503899 |
| 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/3555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aea7a31e6de42e417cf4b20629b642f8818ea3f12f8a67f25affdee410ce2ee8/angular/angular-cli/issues/3555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aea7a31e6de42e417cf4b20629b642f8818ea3f12f8a67f25affdee410ce2ee8/angular/angular-cli/issues/3555 |
| og:image:alt | So this is a feature request for ability to copy assets from different folders of the project, e.g. node_modules etc. Currently it doesn't seem to be supported even if you'll specify this: angular-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiisol |
| 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