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 = () => const createRouter = () =>
new Router({ new Router({
mode: 'history', // require service support mode: 'history', // require service support
base: '/vueapp/', base: '/antpublic/',
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes
}) })

View File

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