Open mudassir0909 opened 8 years ago
A public folder sounds good.
Because the themes are pushed to npm, you could also use npmcdn.com in your code to retrieve those files?
this is awesome :)
Didn't know about npmcdn.com, we can go for it instead of serving via a public folder
Yeah rad, I imagine we could have a resource lib later that knows how to infer the full npmcdn path by itself when in production because it would always be the same.
npmcdn.com + package.name + /public/ + resource.jpg
yes, sounds good, we could have a handlebars helper which points to local folder during development & npmcdn during production
What's the best way to serve assets for your theme? Right now I'm using custom font built using icomoon for theme icons, since the icon font file can't be served, I'm converting the font to base64 format & inlining it.
Can we serve any theme related assets? Perhaps a folder where the theme owners can put theme related assets & it can be served