👷 Fix dev build

This commit is contained in:
Erin Schnabel 2025-10-14 09:59:27 -04:00
parent 46834da4a8
commit fc57901103
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View file

@ -19,12 +19,10 @@ try {
stabilityThreshold: 2000,
pollInterval: 100
}
}).on('change', (f, stats) => {
const key = path.basename(f);
}).on('change', (f) => {
const key = path.relative(distDir, f);
console.log(`🚀 ${key} changed`);
const targets = data[key];
if (stats) {
console.log(`File ${f} changed size to ${stats.size}`);
}
if (targets === undefined) {
return;
} else if (Array.isArray(targets)) {

View file

@ -10,7 +10,7 @@
"build": "npx sass --no-source-map --stop-on-error src:dist",
"push": "node build-push.mjs",
"dev": "npm-run-all --parallel watch:scss watch:css",
"watch:scss": "npx sass --watch --embed-source-map src:dist",
"watch:scss": "npx sass --watch --poll --embed-source-map src:dist",
"watch:css": "node build-dev.mjs",
"preversion": "npm run build",
"version": "auto-changelog -p && node .github/prerelease.mjs && cp -v dist/*.css .",