Merge branch 'silence-webpack' into 'master'

only print errors and warnings from webpack dev server

See merge request !9118
This commit is contained in:
Filipa Lacerda 2017-02-13 17:06:09 +00:00
commit 79d6838303
1 changed files with 2 additions and 1 deletions

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;
}