Skip to content

Commit

Permalink
Debounced webpack and adjusted scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jahilldev committed Dec 9, 2021
1 parent 6cb0e9a commit eead3fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "npm-run-all clean build:*",
"build:pages": "webpack",
"build:11ty": "eleventy --quiet",
"watch:pages": "yarn build:pages --watch",
"watch:pages": "webpack --watch",
"watch:11ty": "eleventy --serve --quiet --watch",
"lint": "eslint ./src/**/*.ts*",
"test": "jest"
Expand Down
9 changes: 9 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ const data = {
}),
],
},
watchOptions: {
aggregateTimeout: 500,
},
};

/* -----------------------------------
Expand Down Expand Up @@ -216,6 +219,9 @@ const pages = {
}),
],
},
watchOptions: {
aggregateTimeout: 500,
},
};

/* -----------------------------------
Expand Down Expand Up @@ -328,6 +334,9 @@ const entry = {
},
},
},
watchOptions: {
aggregateTimeout: 500,
},
};

/* -----------------------------------
Expand Down

0 comments on commit eead3fc

Please sign in to comment.