mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 19:45:07 +00:00
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import {defineConfig} from 'vite'
|
|
import RubyPlugin from 'vite-plugin-ruby'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
RubyPlugin(),
|
|
],
|
|
|
|
build: {
|
|
minify: false,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: undefined
|
|
}
|
|
}
|
|
},
|
|
|
|
resolve: {
|
|
dedupe: [
|
|
'@primer/view-components',
|
|
'@github/catalyst',
|
|
'@github/relative-time-element',
|
|
'@github/clipboard-copy-element',
|
|
'@github/details-menu-element',
|
|
'@github/include-fragment-element',
|
|
'@github/image-crop-element'
|
|
],
|
|
alias: [
|
|
{
|
|
find: /^@primer\/view-components$/,
|
|
replacement: '@primer/view-components/app/assets/javascripts/primer_view_components.js'
|
|
}
|
|
]
|
|
},
|
|
|
|
optimizeDeps: {
|
|
include: [
|
|
'@primer/view-components',
|
|
'@github/catalyst'
|
|
],
|
|
esbuildOptions: {
|
|
keepNames: true
|
|
}
|
|
},
|
|
|
|
server: {
|
|
hmr: {
|
|
overlay: true
|
|
}
|
|
},
|
|
})
|