fansenze/parcel-transformer-url-loader

favicon.png changes to js file

ol-web opened this issue · 3 comments

In my index.html file I have this:
<link rel="shortcut icon" href="favicon.png" />

after being compiled with this plugin on, it turns to this:
<link rel="shortcut icon" href="/favicon.d82d2c87.js">

It just turns a png to a js file no matter if the file size. Can this be fixed? This plugin is part of my full stack parcel-based boilerplate.

fixed in 1.2.5

ok, extensions work now but the favicon.png file is filled with undefined instead: https://i.imgur.com/9enTCkD.png

ok, without parcel-plugin-imagemin everything works good again. don't know why these two plugins don't work together. maybe because they both have ImageAsset classes?

yeah, all of assets only can have a AssetClass and a Packager in parcel