filemanager-webpack-plugin icon indicating copy to clipboard operation
filemanager-webpack-plugin copied to clipboard

option to not swallow errors

Open patrickkettner opened this issue 4 years ago • 1 comments

Would it be possible to add an option to throw the error being logged? Or change the exit code so that it doesn't return a 0 and appear successful?

https://github.com/gregnb/filemanager-webpack-plugin/blob/35f62bcef3af20b4d85b53f400b097e71ddc03e2/src/actions/copy.js#L56

patrickkettner avatar Jan 11 '21 21:01 patrickkettner

I would prefer to do it webpack way if possible.

For example to fail a compilation, you would do

compilation.push(error)

which causes the compilation to fail. I am not sure if something like this exists for compiler.

sibiraj-s avatar Jan 16 '21 09:01 sibiraj-s