Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-core): add cache just for non-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Nov 15, 2018
1 parent be0855f commit cede436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docz-core/src/webpack/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const js = (config: Config, args: Args, babelrc: any) => {
.end()
.exclude.add(/node_modules/)
.end()
.when(args.debug, addCacheLoader)
.when(!args.debug, addCacheLoader)
.use('babel-loader')
.loader(require.resolve('babel-loader'))
.options(babelrc)
Expand All @@ -47,7 +47,7 @@ export const mdx = (config: Config, args: Args, babelrc: any) => {
.end()
.exclude.add(/node_modules/)
.end()
.when(args.debug, addCacheLoader)
.when(!args.debug, addCacheLoader)
.use('babel-loader')
.loader(require.resolve('babel-loader'))
.options(babelrc)
Expand Down

0 comments on commit cede436

Please sign in to comment.