Closed ebenoist closed 8 years ago
@ebenoist Thanks for opening an issue! Any steps that I can follow to reproduce?
Also, what version of node are you running this with, and do you have the latest release of the plugin?
node --version
npm ls webpack-parallel-uglify-plugin
@ebenoist ping.
Sorry I couldn't get back to you sooner.
I'm on v6.2.2
of node and at webpack-parallel-uglify-plugin@0.1.3
of the module. Looking closer at the issue, it seems that webpack-parallel-uglify is grabbing files from file-loader
and emitting these errors.
ERROR in minifying _/_/_/node_modules/flag-icon-css/flags/1x1/gb-sct-fa4c4311d41b3300a0e60fbe81c7c66a.svg
S.input is not a function
Ah, importing .svg files isn't a use case that I've ever had myself. Are you importing this svg into your javascript file somewhere? I can dig into this, but if you could give me a stripped down example, that'd be really helpful.
@gdborton yup-- I'm importing svgs/pngs/jpgs directly into sass files which are being compiled by webpack as well. In a few places I also import images directly into JS/JSX files as well. They shouldn't be thrown through uglify so if the problem is just a missing exception/pattern match that might work?
I'll see if I can put together a demo tomorrow.
@ebenoist I believe that this is fixed in v0.1.6.
Works for us! Thank you so much.
@gdborton Just wanted to say thank you again-- just reduced our bundling time from ~2m to ~50s
Wanted to give this a try, but ran into some errors:
Let me know if I can help debug!