vite/playground/assets/vite.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
440 B
JavaScript
Raw Permalink Normal View History

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'),
},
},
2022-06-13 13:58:50 +00:00
assetsInclude: ['**/*.unknown'],
build: {
outDir: 'dist/foo',
assetsInlineLimit: 8000, // 8 kB
manifest: true,
watch: {},
},
})