-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Relative path for assets array in angular-cli.json file not working #2933
Comments
Btw it's not working for both |
This isn't a scenario that we want to support currently. The main reason against it is the final path. The current solution means to always keep your dir structure so that you can reference things via predictable static paths. This just isn't possible if you're looking to have things pulled over from outside the project. My best recommendation is to copy over those assets to inside the project. If you don't want to have them there in the repo, you can add it to the gitignore. |
Followup feature request: #3555 |
Sweet. |
Instead of just ignoring/doing nothing, could a warning/error be displayed, such as
|
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. |
Hi guys,
Using relative path for dealing with assets is not working. For example if I want to use images as my assets from a node module folder.
OS?
Mac OSX Sierra
Versions.
angular-cli: 1.0.0-beta.18
node: 6.8.1
os: darwin x64
Repro steps.
This is what my angular-cli.json file looks like:
The log given by the failure.
No error, just the assets files from the
node_modules
folder aren't copied to thedist
, build for me, one.Mention any other details that might be useful.
In the case of relative path I think it should copy the files from the specified folder without keeping the hierarchy. Just taking files and folder in it but without recreating the whole hierarchy of folder in the assets folder.
By the way images from the
src/assets
folder are correctly copied into dist.So i don't know if it's known or not but I think it can be really useful, for me I'm creating packages for my app and some will have images in them.
The text was updated successfully, but these errors were encountered: