feat(cli): add BUILD_TARGET env

This commit is contained in:
陈嘉涵
2019-12-11 14:02:42 +08:00
parent d933ae00fd
commit 2fd09f52b0
5 changed files with 18 additions and 367 deletions

View File

@@ -1,5 +1,11 @@
module.exports = {
entry: {
'site-mobile': ['./docs/site/mobile']
},
module.exports = function() {
if (process.env.BUILD_TARGET === 'package') {
return {};
}
return {
entry: {
'site-mobile': ['./docs/site/mobile']
}
};
};