mirror of
https://github.com/youzan/vant.git
synced 2025-12-23 01:00:44 +08:00
feat(cli): add BUILD_TARGET env
This commit is contained in:
@@ -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']
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user