mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Popup virtual elements (#1449)
* 1433: POC for comments (+ fix build.watch()) * 1433: consolidate virtualAnchor into anchor * add virtual element examples * update changelog --------- Co-authored-by: Marko <marko@modelcitizen.com>
This commit is contained in:
@@ -263,13 +263,16 @@ if (serve) {
|
||||
});
|
||||
|
||||
// Rebuild and reload when source files change
|
||||
bs.watch(['src/**/!(*.test).*']).on('change', async filename => {
|
||||
bs.watch('src/**/!(*.test).*').on('change', async filename => {
|
||||
console.log('updated file: ', filename);
|
||||
|
||||
try {
|
||||
const isTheme = /^src\/themes/.test(filename);
|
||||
const isStylesheet = /(\.css|\.styles\.ts)$/.test(filename);
|
||||
|
||||
// Rebuild the source
|
||||
await Promise.all([buildResults.map(result => result.rebuild())]);
|
||||
const rebuildResults = buildResults.map(result => result.rebuild());
|
||||
await Promise.all(rebuildResults);
|
||||
|
||||
// Rebuild stylesheets when a theme file changes
|
||||
if (isTheme) {
|
||||
|
||||
Reference in New Issue
Block a user