vant/webpack.config.js
2020-12-11 10:07:07 +08:00

20 lines
334 B
JavaScript

const { join } = require('path');
module.exports = function () {
if (process.env.BUILD_TARGET === 'package') {
return {};
}
return {
devtool: false,
entry: {
'site-mobile': ['./docs/site/mobile'],
},
resolve: {
alias: {
'@demo': join(__dirname, 'docs', 'site'),
},
},
};
};