Improved dev server performance by skipping icons in watch mode

This commit is contained in:
squidfunk 2020-06-21 11:09:43 +02:00
parent 1606052cd7
commit bebf7d1419

View File

@ -207,6 +207,9 @@ export default (_env: never, args: Configuration): Configuration[] => {
filename: `[name]${hash}.css` filename: `[name]${hash}.css`
}), }),
/* Improve performance by skipping icons in watch mode */
...args.watch ? [] : [
/* FontAwesome icons */ /* FontAwesome icons */
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [
@ -237,7 +240,8 @@ export default (_env: never, args: Configuration): Configuration[] => {
context: "node_modules/@primer/octicons/build/svg", context: "node_modules/@primer/octicons/build/svg",
...pattern ...pattern
})) }))
}), })
],
/* Search stemmers and segmenters */ /* Search stemmers and segmenters */
new CopyPlugin({ new CopyPlugin({