修改打包配置
This commit is contained in:
parent
5783dde87a
commit
0afc0cecb4
|
|
@ -36,7 +36,7 @@ module.exports = {
|
||||||
// Paths
|
// Paths
|
||||||
assetsRoot: path.resolve(__dirname, '../dist'),
|
assetsRoot: path.resolve(__dirname, '../dist'),
|
||||||
assetsSubDirectory: 'static01',
|
assetsSubDirectory: 'static01',
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: '/bigScrap',
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
devtool: '#source-map',
|
devtool: '#source-map',
|
||||||
productionGzip: false,
|
productionGzip: false,
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ const routes = [
|
||||||
const router = new Router({
|
const router = new Router({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
routes,
|
routes,
|
||||||
|
base: '/bigScrap'
|
||||||
})
|
})
|
||||||
|
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue