Open aminta opened 3 years ago
I'm facing the same issue. What I've found out so far:
lib/encode-query-loader.js
) works correctly, and returns the AST with the encoded fills.const query
with a hardcoded value, the svgs are transformed correctlyI then looked at this.resourceQuery
in loader.js
this.resourceQuery
is set correctly to ?fill=#fff
this.resourceQuery
alway is set to ?fill=
which then results in normalizedRules to be an emtpy array.changing it to const query = this.resourceQuery ? parseQuery(this.resourceQuery + this.resourceFragment) : null;
seems to fix the problem for webpack 5
Hi, I can't use your plugin using Webpack 5 Asset Modules to treat Svg: the final Svg remains untouched, here it is my confguration: