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,37 +207,41 @@ export default (_env: never, args: Configuration): Configuration[] => {
|
||||
filename: `[name]${hash}.css`
|
||||
}),
|
||||
|
||||
/* FontAwesome icons */
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ to: ".icons/fontawesome", from: "**/*.svg" },
|
||||
{ to: ".icons/fontawesome", from: "../LICENSE.txt" }
|
||||
].map(pattern => ({
|
||||
context: "node_modules/@fortawesome/fontawesome-free/svgs",
|
||||
...pattern
|
||||
}))
|
||||
}),
|
||||
/* Improve performance by skipping icons in watch mode */
|
||||
...args.watch ? [] : [
|
||||
|
||||
/* Material Design icons */
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ to: ".icons/material", from: "*.svg" }
|
||||
].map(pattern => ({
|
||||
context: "node_modules/@mdi/svg/svg",
|
||||
...pattern
|
||||
}))
|
||||
}),
|
||||
/* FontAwesome icons */
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ to: ".icons/fontawesome", from: "**/*.svg" },
|
||||
{ to: ".icons/fontawesome", from: "../LICENSE.txt" }
|
||||
].map(pattern => ({
|
||||
context: "node_modules/@fortawesome/fontawesome-free/svgs",
|
||||
...pattern
|
||||
}))
|
||||
}),
|
||||
|
||||
/* GitHub octicons */
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ to: ".icons/octicons", from: "*.svg" },
|
||||
{ to: ".icons/octicons", from: "../../LICENSE" }
|
||||
].map(pattern => ({
|
||||
context: "node_modules/@primer/octicons/build/svg",
|
||||
...pattern
|
||||
}))
|
||||
}),
|
||||
/* Material Design icons */
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ to: ".icons/material", from: "*.svg" }
|
||||
].map(pattern => ({
|
||||
context: "node_modules/@mdi/svg/svg",
|
||||
...pattern
|
||||
}))
|
||||
}),
|
||||
|
||||
/* GitHub octicons */
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ to: ".icons/octicons", from: "*.svg" },
|
||||
{ to: ".icons/octicons", from: "../../LICENSE" }
|
||||
].map(pattern => ({
|
||||
context: "node_modules/@primer/octicons/build/svg",
|
||||
...pattern
|
||||
}))
|
||||
})
|
||||
],
|
||||
|
||||
/* Search stemmers and segmenters */
|
||||
new CopyPlugin({
|
||||
|
Loading…
Reference in New Issue
Block a user