fix(nx/server): access to highlight.js styles

This commit is contained in:
Elian Doran
2025-04-24 14:55:11 +03:00
parent 494ee4739a
commit cd14d8eee5
2 changed files with 12 additions and 7 deletions

View File

@@ -291,6 +291,10 @@ export function envToBoolean(val: string | undefined) {
*/
export function getResourceDir() {
if (isElectron && !isDev) return process.resourcesPath;
if (!isDev) {
return path.dirname(process.argv[1]);
}
return join(dirname(fileURLToPath(import.meta.url)), "..");
}