导航菜单
首页 >  images/gongan.png  > Assets/Images not being served... · Issue #9852 · angular/angular

Assets/Images not being served... · Issue #9852 · angular/angular

VersionsAngular CLI: 1.6.6Node: 6.9.4OS: win32 x64Angular: 5.2.2... animations, common, compiler, compiler-cli, core, forms... http, language-service, platform-browser... platform-browser-dynamic, router@angular/cli: 1.6.6@angular-devkit/build-optimizer: 0.0.42@angular-devkit/core: 0.0.29@angular-devkit/schematics: 0.0.52@ngtools/json-schema: 1.1.0@ngtools/webpack: 1.9.6@schematics/angular: 0.1.17typescript: 2.5.3webpack: 3.10.0Repro stepsadd any image to /src/assets/images/reference image in HTMLng serveObserved behavior

image is not foundRequest URL:http://localhost:4200/assets/images/logo.pngRequest Method:GETStatus Code:404 Not Found

I have made sure that my angular-cli.json lists the assets folder...imageAssets folder directly under src directoryimageHTML is typical

Image is 404image

Here is a minimal example...https://github.com/smatthews1999/testng

相关推荐: