Skip to content

Commit

Permalink
fix(docz-core): log level based on debug argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 17, 2018
1 parent 70bb242 commit 507e149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/docz-core/src/webpack/devserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export const devServerConfig = (hooks: ServerHooks, args: Args) => {
return {
publicPath: '/',
compress: true,
clientLogLevel: 'none',
clientLogLevel: args.debug ? 'info' : 'none',
contentBase: publicDir,
watchContentBase: true,
hot: true,
quiet: true,
quiet: !args.debug,
open: true,
watchOptions: {
ignored: ignoredFiles(srcPath),
Expand All @@ -34,7 +34,7 @@ export const devServerConfig = (hooks: ServerHooks, args: Args) => {
app.use(errorOverlayMiddleware())
hooks.onPreCreateApp<any>(app)
},
after(app: any, server: any): void {
after(app: any): void {
hooks.onCreateApp<any>(app)
},
}
Expand Down

0 comments on commit 507e149

Please sign in to comment.