This configuration allows me colors:
var server =
new WebpackDevServer(compiler, {
hot: true,
stats: { colors: true },
contentBase: path.join(__dirname, "../build"),
headers: { "Access-Control-Allow-Origin": "*" }
});
server.listen(env.PORT);
source
share