samrith-s / parcel-plugin-structurize

A plugin to customize the output (dist) directory structure during production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[πŸ›] Bug: Corrupted images

cipri-p opened this issue Β· comments

commented

Describe the bug

I installed the plugin in one of my test projects and works ok for css, js, but it corrupts all the images I have in my project. The size of the (image) files are almost double in size after I run the build task.

Error messages

no error messages in the console

Expected behavior

the content of image files should be preserved

Screenshots

n.a.

Information

  • Package version: 2.1.2
  • Node version: 12.18.0

Additional context

n.a.

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with πŸ‘ or πŸ‘Ž to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Hey @cipri-p πŸ‘‹πŸΌ, thanks for the report. I'll have a look into it.

It's weird that that happens! Do you by any chance have a reproducible repository?
I figured it out. Will push a new release which will fix it.

@cipri-p I have just released v2.1.3. Can you upgrade to this version and check if it works? I tested locally with a dummy project using this version and images work fine for me.

commented

@samrith-s thanks. Just had a look and images are ok with v2.1.3, however the references(in my index.html) don't seem to update with the new path.

@cipri-p Can you provide an example? It's a bit difficult to debug otherwise, coz all the tests are passing.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.