diff options
| author | 2023-11-04 13:48:59 +0800 | |
|---|---|---|
| committer | 2023-11-04 13:48:59 +0800 | |
| commit | c0803c57089da5fea820831325252e08d850fca8 (patch) | |
| tree | 225cf262625863b9b8d46c7880d7e09cc7b87c28 /vite.config.ts | |
| parent | 7642c0bb0ff9f81212e5270f9d598b949f6b0a30 (diff) | |
| download | logshader-c0803c57089da5fea820831325252e08d850fca8.tar.gz logshader-c0803c57089da5fea820831325252e08d850fca8.zip | |
refactor: rebuild with `vuetify`
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..3a9e7a5 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,50 @@ +// Plugins +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' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [ + vue({ + template: { transformAssetUrls } + }), + // https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin + vuetify({ + autoImport: true, + styles: { + configFile: 'src/styles/settings.scss', + }, + }), + 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', + ], + }, + server: { + port: 3000, + }, +}) |
