Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
- Sort asset list by names
- Don’t display perfomarnce hints
- Don’t display entrypoints
- Imn development mode don’t log anything
  • Loading branch information
alexblunck committed Mar 20, 2018
1 parent 3e0b91d commit e7e0eb3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,18 @@ function build() {

console.log(stats.toString({
colors: true,
assetsSort: 'name',
cachedAssets: false,
warnings: false,
modules: false,
children: false,
chunks: false,
chunkModules: false
chunkModules: false,
entrypoints: false,
performance: false
}) + '\n')

console.log(chalk.green(`Build finished\n`))
})
}

Expand All @@ -117,6 +123,10 @@ function start() {
config: config(options),
logLevel: 'error',
port: port,
dev: {
publicPath: '/',
logLevel: 'error'
},
hot: {
logLevel: 'error'
},
Expand Down

0 comments on commit e7e0eb3

Please sign in to comment.