29 lines
756 B
JavaScript
29 lines
756 B
JavaScript
import vue from "@vitejs/plugin-vue";
|
|
import path from "node:path";
|
|
|
|
import { defineConfig } from "vite";
|
|
import { fileURLToPath } from "node:url";
|
|
import { quasar, transformAssetUrls } from "@quasar/vite-plugin";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src/"),
|
|
"@assets": path.resolve(__dirname, "src/assets/"),
|
|
"@components": path.resolve(__dirname, "src/components/"),
|
|
"@utils": path.resolve(__dirname, "src/utils/"),
|
|
},
|
|
extensions: [".js", ".vue", ".json"],
|
|
},
|
|
plugins: [
|
|
vue({
|
|
template: { transformAssetUrls },
|
|
}),
|
|
quasar({
|
|
sassVariables: fileURLToPath(
|
|
new URL("./src/quasar-variables.sass", import.meta.url)
|
|
),
|
|
}),
|
|
],
|
|
});
|