Skip to content

Commit

Permalink
Use glob pattern for excluding files
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Feb 6, 2017
1 parent 422a872 commit f8416f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (!isAsyncSupported()) {
const modulesDir = path.join(__dirname, '..', 'node_modules')

asyncToGen({
excludes: new RegExp(`.*${modulesDir}.*`),
exclude: `**/${modulesDir}/**`,
sourceMaps: false
})
}
Expand Down

0 comments on commit f8416f1

Please sign in to comment.