Static resource bundles

Issue #890 resolved
Patryk Organa created an issue

Static resource bundles are not being recognized, as supported files(icon), and for some of them when right-click -> ic -> convert to bundles then error is being displayed, soemthing about reading zip file, or that option to convert to bundle is even not being displayed.

Scott, Pls look at this bug asap as we have a lots of work to do with pages now, and I already make 2 other peps to buy IC, and they are working with me now :)

Comments (7)

  1. Patryk Organa reporter

    Hi Scott I will attach logs when reproduce that issue, but pls take a look at screenshot attached .sr.jpg

    This is css only static resource, I was trying zipping the file, uploading single css file to static resource, and it sometimes show option 'force save' and sometimes not even that one. No option Convert to bundle. When i put zip file to static resources dfolder manualy, and then click convert to static resource, then also I cant convert it back to bundle.

  2. Patryk Organa reporter

    And .resource files seems to be ok because I can reach them in explorer, and open normally with 7-zip, and all is fine.

  3. Scott Wells repo owner

    Patryk, let me clarify one thing...are you trying to convert an arbitrary static resource that is just a CSS file into a bundle, or are you trying to convert a static resource that's really a zip file into a bundle? The latter is supported. The former is not. IC looks at the content type of the static resource via its meta.xml file and only presents the option to convert for those that are zip files.

  4. Patryk Organa reporter

    I tried both and noone is working. Does ic supports converting resource to bundle? If yes then it is also not available for me

  5. Scott Wells repo owner

    Yes, this is a first-class feature of IC. Here's how it looks in practice:

    ConvertToBundle.png

    I've shown the meta.xml for the file as well. Notice that the static resource's content type is application/zip. IC uses the content type to determine if the static resource file is a zip archive and therefore a candidate to be converted into resource bundle. If it's not, you won't see that context menu option for the file.

    Does that help? Sorry...I'm probably just not understanding exactly what it is you're trying to do.

  6. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  7. Log in to comment