Skip to content

Commit

Permalink
make extra watch files configurable (dojo#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-gadd authored Apr 17, 2019
1 parent 1ee7722 commit 6b8fcca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
const isTest = args.mode === 'unit' || args.mode === 'functional' || args.mode === 'test';
const singleBundle = args.singleBundle || isTest;
const watch = args.watch;
const watchExtraFiles = Array.isArray(args.watchExtraFiles) ? args.watchExtraFiles : [];
let entry: any;
if (singleBundle) {
entry = {
Expand Down Expand Up @@ -445,8 +446,9 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
]
}),
watch &&
watchExtraFiles.length &&
new ExtraWatchWebpackPlugin({
files: ['!(output|.*|node_modules)/**']
files: watchExtraFiles
}),
new ManifestPlugin()
]),
Expand Down

0 comments on commit 6b8fcca

Please sign in to comment.