feat: 删除无用依赖,shiki lang使用懒加载方式加载语言
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// @ts-check
|
||||
import {defineConfig} from 'astro/config';
|
||||
import solidJs from '@astrojs/solid-js';
|
||||
import node from '@astrojs/node';
|
||||
|
||||
// https://astro.build/config
|
||||
@@ -10,16 +9,14 @@ export default defineConfig({
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
},
|
||||
integrations: [solidJs()],
|
||||
adapter: node({
|
||||
mode: 'standalone'
|
||||
}),
|
||||
vite: {
|
||||
plugins: [],
|
||||
server: {
|
||||
watch: {
|
||||
usePolling: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
...(process.argv.includes('dev')
|
||||
? {watch: {usePolling: true}}
|
||||
: {}),
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user