only print errors and warnings from webpack dev server
This commit is contained in:
parent
a2aa5b7e8e
commit
c0fb47333a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue