mirror of
https://github.com/ebullient/obsidian-theme-ebullientworks.git
synced 2026-07-22 03:10:29 +00:00
👷 Fix dev build
This commit is contained in:
parent
46834da4a8
commit
fc57901103
2 changed files with 4 additions and 6 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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 .",
|
||||
|
|
|
|||
Loading…
Reference in a new issue