Closed pyrossh closed 4 years ago
This is a known issue, it has been fixed before but I undid the change as it would emit a JS file for each image, there's probably a better way to fix it and maybe should even be fixed within Parcel core but Parcel 1 is in maintenance mode.
Related fix: 0f94a7485b5b462bdfba1120ab0688604b330ab6
You could use an old version of this plugin 3.0.0
Thanks. Will try the old version and see if it works. And find an alternative to compress the png assests.
Why do you need an alternative? The old version should just work fine and compress your png assets
Ohh yeah I thought the old version might fail with the current parcel version. It worked. Thanks.
I load all my png images like this,
and it works. So I wanted to compress them also and I added
parcel-plugin-imagemin
and now I get this error in the console and nothing seems to load,It seems the plugin doesn't respect relative paths I think.
Directory structure is here: https://github.com/pyros2097/website/tree/master/assets/images/projects
parcel-bundler: "^1.12.4"