Angular-cli: Resource files, where?

Created on 7 Aug 2016  路  3Comments  路  Source: angular/angular-cli

Please provide us with the following information:

1. OS?
OSX El Capitan

2. Versions

angular-cli: 1.0.0-beta.9
node: 6.3.0
os: darwin x64

3. Repro steps.

background:
          linear-gradient(
          rgba(0, 0, 0, 0.5), 
          rgba(0, 0, 0, 0.5)), url(../../resources/cinema-min-600.jpg);

  • resources folder is currently inside the SRC
  • have tried to use the public folder but same issue

This happens when deploying to my github.

4. The log given by the failure.

Failed to load resource: the server responded with a status of 404 (Not Found)

2 (required) bufix

Most helpful comment

Put it in public. so if your put your images in public/resources/cinema-min-600.jpg you would access like this <img src="resources/cinema-min-600.jpg>"

All 3 comments

Put it in public. so if your put your images in public/resources/cinema-min-600.jpg you would access like this <img src="resources/cinema-min-600.jpg>"

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings