提交 8616fd2f 编写于 作者: fxy060608's avatar fxy060608

fix(v3): entry

上级 a307aa03
......@@ -58,21 +58,20 @@ const v3 = {
})
}
const entry = {}
if (isAppService) {
entry['app-service'] = path.resolve(process.env.UNI_INPUT_DIR, getMainEntry())
} else if (isAppView) {
entry['app-view'] = path.resolve(process.env.UNI_INPUT_DIR, getMainEntry())
}
return {
devtool,
mode: process.env.NODE_ENV,
externals: {
vue: 'Vue'
},
entry () {
const entry = {}
if (isAppService) {
entry['app-service'] = path.resolve(process.env.UNI_INPUT_DIR, getMainEntry())
} else if (isAppView) {
entry['app-view'] = path.resolve(process.env.UNI_INPUT_DIR, getMainEntry())
}
return entry
},
entry,
output: {
filename: '[name].js',
chunkFilename: '[id].js',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册