kopia lustrzana https://github.com/FacilMap/facilmap
27 wiersze
773 B
JavaScript
27 wiersze
773 B
JavaScript
import { createServer } from "vite";
|
|
import { dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const root = dirname(fileURLToPath(import.meta.url));
|
|
const dist = `${root}/dist/app`;
|
|
|
|
export const paths = {
|
|
root,
|
|
dist,
|
|
base: '/_app/',
|
|
mapEntry: "src/map/map.ts",
|
|
mapEjs: `${root}/src/map/map.ejs`,
|
|
tableEntry: "src/table/table.ts",
|
|
tableEjs: `${root}/src/table/table.ejs`,
|
|
viteManifest: `${dist}/.vite/manifest.json`,
|
|
pwaManifest: `${root}/src/manifest.json`,
|
|
opensearchXmlEjs: `${root}/src/opensearch.xml.ejs`,
|
|
};
|
|
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export async function serve(inlineConfig = {}) {
|
|
return await createServer({
|
|
root,
|
|
...inlineConfig
|
|
});
|
|
} |