mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved dev server performance by skipping icons in watch mode
This commit is contained in:
parent
1606052cd7
commit
bebf7d1419
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user