문제

I've seen Dart code that places all CSS, HTML, JS, images, etc. in an asset subdirectory, and other projects that place those same files under a web directory. Even the Dart package layout spec is ambiguous on the subject.

So I ask: when to put client-side resources under asset, and when to put them under web?

도움이 되었습니까?

해결책

This is a new feature/convention. The problem is, that the web server integrated into Darteditor doesn't yet support the asset directory. It's only supported by pub serve yet. But I guess Darteditor will support it soon and then this is the way to go.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top