-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d56d54f
commit b02ad9d
Showing
1 changed file
with
35 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,42 @@ | ||
// Plugins | ||
import Components from 'unplugin-vue-components/vite' | ||
import Vue from '@vitejs/plugin-vue' | ||
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify' | ||
import ViteFonts from 'unplugin-fonts/vite' | ||
import Components from "unplugin-vue-components/vite"; | ||
import Vue from "@vitejs/plugin-vue"; | ||
import Vuetify, { transformAssetUrls } from "vite-plugin-vuetify"; | ||
import ViteFonts from "unplugin-fonts/vite"; | ||
|
||
// Utilities | ||
import { defineConfig } from 'vite' | ||
import { fileURLToPath, URL } from 'node:url' | ||
import { defineConfig } from "vite"; | ||
import { fileURLToPath, URL } from "node:url"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
Vue({ | ||
template: { transformAssetUrls } | ||
}), | ||
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme | ||
Vuetify(), | ||
Components(), | ||
ViteFonts({ | ||
google: { | ||
families: [{ | ||
name: 'Roboto', | ||
styles: 'wght@100;300;400;500;700;900', | ||
}], | ||
}, | ||
}), | ||
], | ||
define: { 'process.env': {} }, | ||
resolve: { | ||
alias: { | ||
'@': fileURLToPath(new URL('./src', import.meta.url)) | ||
}, | ||
extensions: [ | ||
'.js', | ||
'.json', | ||
'.jsx', | ||
'.mjs', | ||
'.ts', | ||
'.tsx', | ||
'.vue', | ||
base: "/compas-webviewer/", | ||
plugins: [ | ||
Vue({ | ||
template: { transformAssetUrls }, | ||
}), | ||
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme | ||
Vuetify(), | ||
Components(), | ||
ViteFonts({ | ||
google: { | ||
families: [ | ||
{ | ||
name: "Roboto", | ||
styles: "wght@100;300;400;500;700;900", | ||
}, | ||
], | ||
}, | ||
}), | ||
], | ||
}, | ||
server: { | ||
port: 3000, | ||
}, | ||
}) | ||
define: { "process.env": {} }, | ||
resolve: { | ||
alias: { | ||
"@": fileURLToPath(new URL("./src", import.meta.url)), | ||
}, | ||
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"], | ||
}, | ||
server: { | ||
port: 3000, | ||
}, | ||
}); |