samrith-s / parcel-plugin-structurize

A plugin to customize the output (dist) directory structure during production.
MIT License
41 stars 6 forks source link

[🐛] Bug: Corrupted images #26

Closed cipri-p closed 3 years ago

cipri-p commented 4 years ago

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

Additional context

n.a.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

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

samrith-s commented 4 years ago

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.

samrith-s commented 4 years ago

@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.

cipri-p commented 4 years ago

@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.

samrith-s commented 4 years ago

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

stale[bot] commented 3 years ago

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.