mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
d906d3f8e1
Co-authored-by: Stanislav Lashmanov <slashmanov@gitlab.com>
21 lines
440 B
JavaScript
21 lines
440 B
JavaScript
import path from 'node:path'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
base: '/foo/bar',
|
|
publicDir: 'static',
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'nested'),
|
|
fragment: path.resolve(__dirname, 'nested/fragment-bg.svg'),
|
|
},
|
|
},
|
|
assetsInclude: ['**/*.unknown'],
|
|
build: {
|
|
outDir: 'dist/foo',
|
|
assetsInlineLimit: 8000, // 8 kB
|
|
manifest: true,
|
|
watch: {},
|
|
},
|
|
})
|