These are chat archives for assetgraph/assetgraph

1st
Mar 2017
Peter Müller
@Munter
Mar 01 15:17
Does this make sense to any of you? h5bp/lazyweb-requests#201
Andreas Lind
@papandreou
Mar 01 15:19
@Munter You mean we previously used GETSTATICURL(...) for that, right?
Peter Müller
@Munter
Mar 01 15:20
Huh, did I look up the wrong thing :)
Fixed
Andreas Lind
@papandreou
Mar 01 15:22
We could be bold and suggest 'foo.png'.toString('url') as the standard :)
Peter Müller
@Munter
Mar 01 15:23
I'm pretty sure that's going to be impossible to convince people to do
Andreas Lind
@papandreou
Mar 01 15:24

It has some nice properties:

1) Doesn't require any new syntax
2) Degrades gracefully
3) Survives uglification
4) Already proven to work

Peter Müller
@Munter
Mar 01 15:28
TRouble is that other tools seem to rely on the module loader overloading. So I don't even think most of them even do static analysis. They just wrap the loader
Both my suggestion and 'foo.png'toString('url') will leave them having to do more work, plus get all of their communities updated :(