You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have svg-to-pdfkit working completely fine in web when building with webpack, but as soon as I just flip "optimization.minimize: false" to "optimization.minimize: true" in webpack, fill with <pattern> stops working and all I see is solid black fill.
Using latest version for PDFKit and this plugin, and webpack 5.
It's a long shot posting here but I'm just feeling lucky, maybe anyone has an idea what can cause black fill instead of pattern fill... Really hard to debug webpack's minimizer. I tried putting all the pdf-related modules into "excludes" for TerserPlugin but it didn't help.
The text was updated successfully, but these errors were encountered:
I didn't really understand how exactly terser breaks svg-to-pdfkit, but I was able to create a separate chunk for this package, and then disable TerserPlugin only for that chunk
I have svg-to-pdfkit working completely fine in web when building with webpack, but as soon as I just flip "optimization.minimize: false" to "optimization.minimize: true" in webpack, fill with
<pattern>
stops working and all I see is solid black fill.Using latest version for PDFKit and this plugin, and webpack 5.
It's a long shot posting here but I'm just feeling lucky, maybe anyone has an idea what can cause black fill instead of pattern fill... Really hard to debug webpack's minimizer. I tried putting all the pdf-related modules into "excludes" for TerserPlugin but it didn't help.
The text was updated successfully, but these errors were encountered: