angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng serve ignores assets

Open kaynz opened this issue 9 years ago • 3 comments

OS?

ArchLinux, Windows 10

Versions.

@angular/cli: 1.0.0-beta.31 node: 7.5.0 os: linux x64 @angular/common: 2.4.7 @angular/compiler: 2.4.7 @angular/core: 2.4.7 @angular/forms: 2.4.7 @angular/http: 2.4.7 @angular/platform-browser: 2.4.7 @angular/platform-browser-dynamic: 2.4.7 @angular/router: 3.4.7 @angular/cli: 1.0.0-beta.31 @angular/compiler-cli: 2.4.7

Repro steps.

ng new test touch test/src/assets/test.json ng serve

Bug

There's no assets available, see chrome sources: https://paste.xinu.at/DQf5y/

kaynz avatar Feb 13 '17 14:02 kaynz

The assets are available and are not ignored. Try adding an image, or a css stylesheet, something that will cause the browser to download the file, and you will see it in chrome dev tools under 'localhost:4200'.

#goodnessSquad

sthuck avatar Feb 15 '17 18:02 sthuck

Yea, sorry :(

kaynz avatar Feb 15 '17 18:02 kaynz

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.