Local Resource Generation #3762
Comments
|
I guess ionic resources was built as an service because image resizing with nodejs will require third party libraries and will add too much overhead to actual framework And most off libs are not very well suited for cross platform Long ago when I was working on proxied environment I wrote an small utility on weekends using golang that allows to generate resources offline and is lightweight no dependency an wrapper can be easily wrote around it if we want to ship as npm and can download binaries according to OS. Maybe worth making and less time consuming if folks at ionic are interested PoC https://github.com/harshzalavadiya/ionic-resource-generator Edit: Jimp looks more promising |
|
@harshzalavadiya (and others) CLI 4.9.0 just shipped with a hidden option to try a local resources generation tool. Try this:
|
|
That's really cool Btw, repo link on npm is giving 404 isn't it open source |
|
@harshzalavadiya Thanks, I just had to make it public. |
|
@dwieeb this needs to be the new default :D |
|
@trumbitta Thanks! Glad you like it. I'll be rolling it out to more people as I get more feedback. |
|
I got something to add:
It uploaded my almost 30MB png splashscreen to then say its too big.... This is wasting so much bandwidth..... not a problem for me but ionic servers could save so much bandwidth! |
|
@rodrigograca31 Thanks, but that won't even be a consideration for local resource generation. It won't need to upload. |
|
@dwieeb Yeah, was just mentioning it while they stay with non local resource generation. |
|
Ionic CLI 5 ships with support for generating Cordova resources locally using the cordova-res utility, which completely replaces the existing code for generating resources remotely in Give it a try! Leave feedback/bug reports in either repo. Thanks! |
It would be nice to investigate a local solution to the resources generation, instead of using the legacy resources server and requiring a login.
Issues this might solve or be solved with this:
The text was updated successfully, but these errors were encountered: