0.1.0 • Published 3 months ago
@postinumero/vite-plugin-remix-resolve-config-path v0.1.0
@postinumero/vite-plugin-remix-resolve-config-path
Import from Remix config paths
node:path
as path
and Remix Config as config
are available.
Example
// Import the root
import * as root from "virtual:remix-resolve-config-path:${path.join(config.appDirectory, config.routes.root.file)}";
// Or import using one of the presest
import * as root from "virtual:remix-resolve-config-path:preset:root";
Setup
import remixResolveConfigPath from "@postinumero/vite-plugin-remix-resolve-config-path";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [remixResolveConfigPath],
});
0.1.0
3 months ago