20 lines
422 B
JavaScript
20 lines
422 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import tailwind from '@astrojs/tailwind';
|
|
|
|
export default defineConfig({
|
|
integrations: [tailwind()],
|
|
output: 'static',
|
|
build: {
|
|
assets: 'assets'
|
|
},
|
|
vite: {
|
|
// 减少来自依赖项的警告噪音
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production')
|
|
},
|
|
// 抑制未使用导入的警告
|
|
ssr: {
|
|
noExternal: []
|
|
}
|
|
}
|
|
}); |