Preview: theme-bundler.js
Size: 404 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/utils/theme-bundler.js
import { createRequire } from 'node:module';
import path from 'path';
const require = createRequire(import.meta.url);
const getAdminjsThemesDir = () => path.parse(require.resolve('@adminjs/themes')).dir;
export const bundlePath = theme => path.join(getAdminjsThemesDir(), `themes/${theme}/theme.bundle.js`);
export const stylePath = theme => path.join(getAdminjsThemesDir(), `themes/${theme}/style.css`);
Directory Contents
Dirs: 2 × Files: 5