From 0eb937845eeaa192a31d014b901cc52d7b69e0f6 Mon Sep 17 00:00:00 2001 From: 406803045 <406803045@qq.com> Date: Thu, 6 Jun 2019 10:52:24 +0800 Subject: [PATCH] babel --- src/router/index.js | 2 +- vue.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index d2cf64a..0489865 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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 }) diff --git a/vue.config.js b/vue.config.js index 1ff581c..a54384b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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 }) }