Fantasy-Map-Generator/vite.config.js

25 lines
814 B
JavaScript

// import {defineConfig} from "vite";
// import {fileURLToPath} from "url";
// import path from "path";
// const pathName = path.dirname(fileURLToPath(import.meta.url));
// const resolved = path.resolve(pathName, "./src");
// export default defineConfig({
// // base: "/Fantasy-Map-Generator/",
// resolve: {
// alias: {
// // "@": path.resolve(pathName, "./src")
// // "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "./src")
// // "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "/src")
// // {
// // find: "@",
// // replacement: path.resolve(pathName, "./src"),
// // customResolver: request => {
// // console.log(request);
// // return request;
// // }
// // }
// }
// }
// });