From a03a95a3bc0443c7b6d9185c2a22b2830f36148b Mon Sep 17 00:00:00 2001 From: jialin Date: Fri, 21 Jun 2024 00:15:57 +0800 Subject: [PATCH] chore: hash type route --- config/config.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/config.ts b/config/config.ts index 4835d4ac..b928d979 100644 --- a/config/config.ts +++ b/config/config.ts @@ -11,6 +11,9 @@ export default defineConfig({ proxy: { ...proxy() }, + history: { + type: 'hash' + }, base: process.env.npm_config_base || '/', ...(isProduction ? { @@ -19,11 +22,6 @@ export default defineConfig({ src: `/js/umi.${t}.js` } ], - // cssLoader: { - // modules: { - // localIdentName: 'css/[name]__[local]___[hash:base64:5]' - // } - // }, chainWebpack(config: any) { config.plugin('mini-css-extract-plugin').tap((args: any) => [ {