server: serve dev files for client src debugging

This commit is contained in:
jean-emmanuel 2026-11-08 00:30:32 +01:00
parent a47050e7ad
commit 2790b7d86e

View file

@ -41,6 +41,11 @@ class WebServer extends EventEmitter {
// add remote root or absolute
this.resolveDirs.push(this.remoteRoot || '')
if (!this.prod) {
// add src root folder for debugging
this.resolveDirs.push(path.resolve(__dirname + '/../../../'))
}
this.ignoredNotFound = [
'/apple-touch-icon-precomposed.png',
'/favicon.ico',