Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top