This commit is contained in:
406803045 2019-06-06 10:52:24 +08:00
parent 472d602c29
commit 0eb937845e
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export const constantRoutes = [
const createRouter = () =>
new Router({
mode: 'history', // require service support
base: '/vueapp/',
base: '/antpublic/',
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})

View File

@ -37,7 +37,7 @@ const cdn = {
}
}
module.exports = {
publicPath: process.env.NODE_ENV === 'development' ? '/' : '/vueapp/',
publicPath: process.env.NODE_ENV === 'development' ? '/' : '/antpublic/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',
@ -57,7 +57,7 @@ module.exports = {
// externals里的模块不打包
Object.assign(config, {
name: name,
entry:["@babel/polyfill", "./src/main.js"],
// entry:["@babel/polyfill", "./src/main.js"],
externals: externals
})
}