2023-02-17 09:21:02 +00:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import solidPlugin from 'vite-plugin-solid'
|
|
|
|
import ssrPlugin from 'vite-plugin-ssr/plugin'
|
|
|
|
import sassDts from 'vite-plugin-sass-dts'
|
|
|
|
|
2023-07-19 19:48:24 +00:00
|
|
|
export default defineConfig(() => {
|
2023-02-17 09:21:02 +00:00
|
|
|
return {
|
|
|
|
envPrefix: 'PUBLIC_',
|
|
|
|
plugins: [solidPlugin({ ssr: true }), ssrPlugin({ includeAssetsImportedByServer: true }), sassDts()],
|
|
|
|
server: {
|
|
|
|
port: 3000
|
|
|
|
},
|
|
|
|
css: {
|
2023-06-02 22:01:08 +00:00
|
|
|
devSourcemap: true,
|
2023-02-17 09:21:02 +00:00
|
|
|
preprocessorOptions: {
|
|
|
|
scss: { additionalData: '@import "src/styles/imports";\n' }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
rollupOptions: {
|
|
|
|
external: []
|
|
|
|
},
|
2023-05-01 18:32:32 +00:00
|
|
|
chunkSizeWarningLimit: 1024,
|
2023-02-17 09:21:02 +00:00
|
|
|
target: 'esnext'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|