gajus / write-file-webpack-plugin

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

Error handling while persisting files to disk #46

Closed veetil09 closed 7 years ago

veetil09 commented 7 years ago

fs.writeFileSync(relativeOutputPath.split('?')[0], assetSource); can throw an exception so, it has to be surrounded by a try-catch in case of an exception.