2023-02-28 14:56:51 +00:00
|
|
|
import path from 'node:path'
|
|
|
|
import { defineConfig } from 'vite'
|
2021-02-16 15:43:01 +00:00
|
|
|
|
2023-02-28 14:56:51 +00:00
|
|
|
export default defineConfig({
|
2023-10-12 07:06:11 +00:00
|
|
|
base: '/foo/bar',
|
2021-01-29 19:01:36 +00:00
|
|
|
publicDir: 'static',
|
2021-02-16 15:43:01 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': path.resolve(__dirname, 'nested'),
|
2024-07-23 10:59:36 +00:00
|
|
|
fragment: path.resolve(__dirname, 'nested/fragment-bg.svg'),
|
2021-02-16 15:43:01 +00:00
|
|
|
},
|
|
|
|
},
|
2022-06-13 13:58:50 +00:00
|
|
|
assetsInclude: ['**/*.unknown'],
|
2020-12-22 21:27:36 +00:00
|
|
|
build: {
|
2021-02-01 15:59:42 +00:00
|
|
|
outDir: 'dist/foo',
|
2023-08-21 08:16:05 +00:00
|
|
|
assetsInlineLimit: 8000, // 8 kB
|
2021-06-21 15:50:26 +00:00
|
|
|
manifest: true,
|
|
|
|
watch: {},
|
2022-06-16 07:56:03 +00:00
|
|
|
},
|
2023-02-28 14:56:51 +00:00
|
|
|
})
|