Temporarily disable vite bundler

This commit is contained in:
hmol233 2021-05-15 19:12:43 +08:00
parent 357f04a713
commit 4a1c51cfe7
No known key found for this signature in database
GPG Key ID: D617A9DAB0C992D5

View File

@ -22,7 +22,7 @@ export default defineUserConfig<DefaultThemeOptions>({
], ],
["@vuepress/plugin-debug", !isProduction], ["@vuepress/plugin-debug", !isProduction],
], ],
base: isProduction ? "/Xray-docs-next/" : "", base: "/Xray-docs-next/",
locales: { locales: {
"/": { "/": {
lang: "zh-CN", lang: "zh-CN",
@ -90,7 +90,7 @@ export default defineUserConfig<DefaultThemeOptions>({
extendsMarkdown: (md) => { extendsMarkdown: (md) => {
md.use(require("markdown-it-footnote")); md.use(require("markdown-it-footnote"));
}, },
bundler: isProduction ? "@vuepress/webpack" : "@vuepress/vite", bundler: "@vuepress/webpack",
bundlerConfig: { bundlerConfig: {
chainWebpack: (config) => { chainWebpack: (config) => {
config.module config.module
@ -102,9 +102,6 @@ export default defineUserConfig<DefaultThemeOptions>({
name: `assets/img/[name].[hash:8].[ext]`, name: `assets/img/[name].[hash:8].[ext]`,
}); });
}, },
viteOptions: {
base: "/Xray-docs-next/",
},
}, },
//postcss: { plugins: [require("autoprefixer")] } //postcss: { plugins: [require("autoprefixer")] }
}); });