mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
27 lines
584 B
JavaScript
27 lines
584 B
JavaScript
/**
|
|
* @type {import('vite').UserConfig}
|
|
*/
|
|
|
|
const baseConfig = require('./vite.config.js')
|
|
module.exports = {
|
|
...baseConfig,
|
|
base: './', // relative base to make dist portable
|
|
build: {
|
|
...baseConfig.build,
|
|
outDir: 'dist/relative-base',
|
|
watch: false,
|
|
minify: false,
|
|
assetsInlineLimit: 0,
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: 'entries/[name].js',
|
|
chunkFileNames: 'chunks/[name].[hash].js',
|
|
assetFileNames: 'other-assets/[name].[hash][extname]'
|
|
}
|
|
}
|
|
},
|
|
testConfig: {
|
|
baseRoute: '/relative-base/'
|
|
}
|
|
}
|