Commit 4f6eb677 by 杨北旺

修改config配置

1 parent ff4513c0
const path = require('path')
const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
// const baseUrl = process.env.VUE_APP_BASE_URL;
const baseUrl = '/'
// const baseUrl = process.env.VUE_APP_BASE_URL;
const publicPath = node_env ? `/child/${packageName}/` : '/'
// const baseUrl = '/'
const resolve = dir => path.join(__dirname, dir)
module.exports = {
outputDir: `dist`,
publicPath: node_env ? baseUrl : '/',
publicPath: publicPath,
assetsDir: 'static',
configureWebpack: {
resolve: {
......@@ -49,4 +50,4 @@ module.exports = {
})
.end()
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!