vant/webpack.config.js
2021-03-15 16:58:00 +08:00

21 lines
378 B
JavaScript

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