oyslin / replace-in-file-webpack-plugin

A webpack plugin to quickly replace text in one or more files.
MIT License
34 stars 14 forks source link

Plugin crashes when the file doesn't exist yet #10

Open alfredo-baquedano opened 5 years ago

alfredo-baquedano commented 5 years ago

This plugin work very well for me, but it always searched for a file that is on my git ignore, so when I clone my repo in other computer this plugin crashed my web server because the file is not yet created.

I added a little try catch to solve it.