修改打包配置

This commit is contained in:
BianLzhaoMin 2024-07-16 18:00:59 +08:00
parent 5783dde87a
commit 0afc0cecb4
2 changed files with 31 additions and 30 deletions

View File

@ -36,7 +36,7 @@ module.exports = {
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static01',
assetsPublicPath: '/',
assetsPublicPath: '/bigScrap',
productionSourceMap: false,
devtool: '#source-map',
productionGzip: false,

View File

@ -63,6 +63,7 @@ const routes = [
const router = new Router({
mode: 'history',
routes,
base: '/bigScrap'
})
router.beforeEach(async (to, from, next) => {