-
Notifications
You must be signed in to change notification settings - Fork 12k
Linking an image outside of app root #6332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ng serve essentially performs an ng build in memory so the assets configured in .angular-cli.json should be available. Which also means that the output of ng build can be used to preview what is available via ng serve. Can you provide your .angular-cli.json file? |
@CSchulz You can specify custom folders as |
I was expecting that I can't find anything special for assets in the https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/plugins/glob-copy-webpack-plugin.ts . Why is there a different behavior? |
@CSchulz These are passed as arguments to copy plugin https://github.com/angular/angular-cli/blob/master/packages/@angular/cli/models/webpack-configs/common.ts#L56. |
Yes for sure, but why is there different behavior? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
node: 6.9.5
os: win32 x64
@angular/animations: 4.1.2
@angular/common: 4.1.2
@angular/compiler: 4.1.2
@angular/core: 4.1.2
@angular/forms: 4.1.2
@angular/http: 4.1.2
@angular/platform-browser: 4.1.2
@angular/platform-browser-dynamic: 4.1.2
@angular/router: 4.1.2
@angular/cli: 1.1.0-rc.0
@angular/compiler-cli: 4.1.2
Repro steps.
Additional information
I have tried different ways all without success:
You can see no resources from icons are included:

The css is included via the styles of angular-cli.json.
Related to #3292
Desired functionality.
The image should be found out side of the app root directory f.e. src.
The assets array should be used for ng serve too.
The text was updated successfully, but these errors were encountered: