change: Use @css: instead of $PACKAGE_ROOT/

This makes usage from the command line easier,
since $ is typically used to mark variables.
This commit is contained in:
Ruben Verborgh
2021-08-03 12:31:19 +01:00
parent f28279e3a5
commit 1719857e4b
20 changed files with 67 additions and 52 deletions

View File

@@ -14,7 +14,7 @@ import type { HttpRequest } from '../HttpRequest';
/**
* Handler that serves static resources on specific paths.
* Relative file paths are assumed to be relative to cwd.
* Relative file paths can be preceded by $PACKAGE_ROOT/, e.g. $PACKAGE_ROOT/foo/bar,
* Relative file paths can be preceded by `@css:`, e.g. `@css:foo/bar`,
* in case they need to be relative to the module root.
*/
export class StaticAssetHandler extends HttpHandler {