2023-06-08 14:52:40 +01:00
|
|
|
// Copyright (C) 2023 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2023-07-14 00:45:59 +01:00
|
|
|
import { fileURLToPath, URL } from 'node:url';
|
2023-06-08 14:52:40 +01:00
|
|
|
|
2023-07-14 00:45:59 +01:00
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify';
|
|
|
|
import { defineConfig } from 'vite';
|
2023-06-08 14:52:40 +01:00
|
|
|
|
2023-07-13 06:03:34 +01:00
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-07-14 00:45:59 +01:00
|
|
|
base: '/static/dist_vuetify_poc',
|
|
|
|
plugins: [
|
|
|
|
vue({
|
|
|
|
template: { transformAssetUrls },
|
|
|
|
}),
|
|
|
|
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
|
|
|
vuetify({
|
|
|
|
autoImport: true,
|
|
|
|
styles: {
|
|
|
|
configFile: 'vuetify-poc/src/styles/settings.scss',
|
|
|
|
},
|
|
|
|
}),
|
2023-07-13 06:03:34 +01:00
|
|
|
],
|
2023-10-13 06:39:30 +01:00
|
|
|
define: {
|
|
|
|
'process.env': {},
|
|
|
|
__UI_TYPE__: JSON.stringify('vuetify'),
|
|
|
|
},
|
2023-07-14 00:45:59 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
'@poc': fileURLToPath(new URL('./vuetify-poc/src', import.meta.url)),
|
2023-07-28 15:29:32 +01:00
|
|
|
'stream': 'stream-browserify', // Passphrase mnemonic generation will not work without this
|
2023-07-14 00:45:59 +01:00
|
|
|
},
|
|
|
|
extensions: [
|
|
|
|
'.js',
|
|
|
|
'.json',
|
|
|
|
'.jsx',
|
|
|
|
'.mjs',
|
|
|
|
'.ts',
|
|
|
|
'.tsx',
|
|
|
|
'.vue',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
outDir: fileURLToPath(new URL('dist_vuetify_poc', import.meta.url)),
|
|
|
|
emptyOutDir: true,
|
|
|
|
rollupOptions: {
|
|
|
|
input: {
|
|
|
|
'vuetify-poc': fileURLToPath(new URL('./index-vuetify.html', import.meta.url)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
2023-07-13 06:03:34 +01:00
|
|
|
},
|
2023-07-14 00:45:59 +01:00
|
|
|
});
|