johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

looks like on an error the exit status is 0

p3x-robot opened this issue · comments

Hello!
How are you?
It looks like when we receive an error, the exit status is 0 and it should be other than zero.
image

I have tested the simplest setup to recreate your issue

const CleanWebpackPlugin = require('clean-webpack-plugin');

module.exports = {
    plugins: [new CleanWebpackPlugin(['should error'])],
}

Using both webpack's CLI and node API, the process is exited with exit code 1. It looks like whatever build system you are using is catching the error and not properly exiting. If you provide a minimal example repo I might be able to help further.

screen shot 2019-03-05 at 9 23 11 am

then it is on my error. thank you so much for your help! take care!