gajus / write-file-webpack-plugin

Forces webpack-dev-server to write bundle files to the file system.
Other
527 stars 54 forks source link

Fix `Data must be a string or a buffer` #39

Closed odensc closed 7 years ago

odensc commented 7 years ago

I've had some weird cases where write-file-webpack-plugin will cause a TypeError: Data must be a string or a buffer error because asset.source() returns an array - this PR fixes that by joining the array by new lines.

odensc commented 7 years ago

@gajus Would you mind pushing an update to npm for this?

gajus commented 7 years ago

https://github.com/gajus/write-file-webpack-plugin/tree/v4.0.2

odensc commented 7 years ago

Great, thanks!