mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 01:59:30 -07:00
35 lines
722 B
TypeScript
35 lines
722 B
TypeScript
import { defineConfig } from 'vite'
|
|
import solidPlugin from 'vite-plugin-solid'
|
|
|
|
export default defineConfig({
|
|
plugins: [solidPlugin()],
|
|
build: {
|
|
outDir: './bundled',
|
|
cssMinify: 'esbuild',
|
|
watch: process.env.DISABLE_WATCH
|
|
? null
|
|
: {
|
|
include: 'assets/**'
|
|
},
|
|
rollupOptions: {
|
|
input: {
|
|
main: './assets/ts/main.tsx',
|
|
critical: './assets/ts/critical.ts'
|
|
},
|
|
output: {
|
|
format: 'es',
|
|
entryFileNames: 'js/[name].js',
|
|
chunkFileNames: 'js/[hash:6].js',
|
|
assetFileNames: '[ext]/[name].[ext]'
|
|
}
|
|
}
|
|
},
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
loadPaths: ['./assets/scss']
|
|
}
|
|
}
|
|
}
|
|
})
|