babel

1 parent 472d602c
......@@ -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
})
......
......@@ -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
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!