refactor(es modules): set up alias

This commit is contained in:
Azgaar 2022-06-26 14:06:49 +03:00
parent f9aeaddf52
commit 11df349394
4 changed files with 15 additions and 4 deletions

View file

@ -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")
}
}
});