vite/playground/assets/vite.config.js
Stanislav Lashmanov d906d3f8e1
fix(css): resolve url aliases with fragments (fix: #17690) (#17691)
Co-authored-by: Stanislav Lashmanov <slashmanov@gitlab.com>
2024-07-23 12:59:36 +02:00

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: {},
},
})