These are chat archives for assetgraph/assetgraph

7th
Dec 2015
Peter Müller
@Munter
Dec 07 2015 22:00
@papandreou Did the handling of systemjs imported css, templates, images etc get solved in the current version of ag-b?
Andreas Lind
@papandreou
Dec 07 2015 22:04
@Munter CSS imported via the official plugin (https://github.com/systemjs/plugin-css) 0.1.20+ uses the asset list feature we came up with, and should work out of the box. Templates are solved "in theory", but requires collaboration with a plugin. @gustavnikolaj wrote one for knockout templates, should be adaptible.
Peter Müller
@Munter
Dec 07 2015 22:05
ok, so the individual plugin needs to add some metadata for things to get picked up correctly?
Andreas Lind
@papandreou
Dec 07 2015 22:05
Yes
They need to emit an asset list. It's an array of items that can either be a url or the actual source + source map.
It's pretty much one-to-one with our asset config objects.
There's no specific support for images, but again, it's solved in theory. Until plugins emerge, you can still use GETSTATICURL in the code that will end up being bundled. I would very much like to replace all that with a system.js plugin.
Peter Müller
@Munter
Dec 07 2015 22:08
I havn't seen that many people think images into this. St least not in systemjs
I've seen it in webpack
There it's all a great big afterthought of a hack to get cache renaming working
Andreas Lind
@papandreou
Dec 07 2015 22:09