mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
refactor(es modules): temporary remove alias
This commit is contained in:
parent
4814bce58d
commit
4feed39d5c
68 changed files with 165 additions and 148 deletions
|
|
@ -2,11 +2,24 @@ 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/",
|
||||
// base: "/Fantasy-Map-Generator/",
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "/src")
|
||||
}
|
||||
alias: [
|
||||
// "@": "./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;
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue