Temporarily disable vite bundler

pull/44/head
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
1 changed files with 2 additions and 5 deletions

View File

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