chore: hash type route
This commit is contained in:
+3
-5
@@ -11,6 +11,9 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
...proxy()
|
...proxy()
|
||||||
},
|
},
|
||||||
|
history: {
|
||||||
|
type: 'hash'
|
||||||
|
},
|
||||||
base: process.env.npm_config_base || '/',
|
base: process.env.npm_config_base || '/',
|
||||||
...(isProduction
|
...(isProduction
|
||||||
? {
|
? {
|
||||||
@@ -19,11 +22,6 @@ export default defineConfig({
|
|||||||
src: `/js/umi.${t}.js`
|
src: `/js/umi.${t}.js`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// cssLoader: {
|
|
||||||
// modules: {
|
|
||||||
// localIdentName: 'css/[name]__[local]___[hash:base64:5]'
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
chainWebpack(config: any) {
|
chainWebpack(config: any) {
|
||||||
config.plugin('mini-css-extract-plugin').tap((args: any) => [
|
config.plugin('mini-css-extract-plugin').tap((args: any) => [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user