build(custom): 路由更改为浏览器 history 路由模式
This commit is contained in:
@@ -53,10 +53,10 @@ export default defineConfig(async (merge, {}) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
h5: {
|
h5: {
|
||||||
publicPath: '/public/',
|
publicPath: '/',
|
||||||
staticDirectory: 'static',
|
staticDirectory: 'static',
|
||||||
router: {
|
router: {
|
||||||
mode: 'hash',
|
mode: 'browser',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: 'js/[name].[hash:8].js',
|
filename: 'js/[name].[hash:8].js',
|
||||||
|
|||||||
Reference in New Issue
Block a user