ng --version
. If there's nothing outputted, please runnode --version
and paste the result here:I read online that in project we have public folder but when I pulled the code there was not public folder and when I did ng build I was not able to see my images .
Thanks! We'll be in touch soon.
See the property 'assets' in angular-cli.json.
This means images (or assets in general) have to be placed under _root/assets_, in this case it will be under src/assets
.
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": "assets",
"index": "index.html",
"main": "main.ts",
"test": "test.ts",
"tsconfig": "tsconfig.json",
"prefix": "app",
"mobile": false,
"styles": [
"styles.css"
],
"scripts": [],
"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
Okay, so... It's copying /src/assets/images to /dist/assets/images, but it's not copying all files. In my case, it copies the four .png files, and leaves the one .jpg file sitting there.
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._
Most helpful comment
See the property 'assets' in angular-cli.json.
This means images (or assets in general) have to be placed under _root/assets_, in this case it will be under
src/assets
.