only print errors and warnings from webpack dev server

This commit is contained in:
Simon Knox 2017-02-10 13:16:38 +11:00
parent a2aa5b7e8e
commit c0fb47333a

View file

@ -117,7 +117,8 @@ if (IS_PRODUCTION) {
if (IS_DEV_SERVER) {
config.devServer = {
port: DEV_SERVER_PORT,
headers: { 'Access-Control-Allow-Origin': '*' }
headers: { 'Access-Control-Allow-Origin': '*' },
stats: 'errors-only',
};
config.output.publicPath = '//localhost:' + DEV_SERVER_PORT + config.output.publicPath;
}