mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor(es modules): set up alias
This commit is contained in:
parent
f9aeaddf52
commit
11df349394
4 changed files with 15 additions and 4 deletions
|
|
@ -1,5 +1,12 @@
|
|||
import {defineConfig} from "vite";
|
||||
import {fileURLToPath} from "url";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
base: "/Fantasy-Map-Generator/"
|
||||
base: "/Fantasy-Map-Generator/",
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "/src")
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue