mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
[Tiny PR, 8 loc diff] Reduce build process noise (#766)
* Reduce build process noise - Only run 11ty when something has changed within `docs/` - Only run esbuild if a JS file has changed within * Update scripts/build.js Co-authored-by: Konnor Rogers <konnor5456@gmail.com> --------- Co-authored-by: Cory LaViska <cory@abeautifulsite.net> Co-authored-by: Konnor Rogers <konnor5456@gmail.com>
This commit is contained in:
@@ -353,7 +353,9 @@ if (isDeveloping) {
|
||||
return;
|
||||
}
|
||||
|
||||
await regenerateBundle();
|
||||
if (filename.includes('src/') && /\.(js|ts|css)$/.test(filename)) {
|
||||
await regenerateBundle();
|
||||
}
|
||||
|
||||
// Copy stylesheets when CSS files change
|
||||
if (isCssStylesheet) {
|
||||
@@ -366,7 +368,9 @@ if (isDeveloping) {
|
||||
}
|
||||
|
||||
// This needs to be outside of "isComponent" check because SSR needs to run on CSS files too.
|
||||
await generateDocs();
|
||||
if (filename.includes('/docs/')) {
|
||||
await generateDocs();
|
||||
}
|
||||
|
||||
reload();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user