1 Star 13 Fork 0

vant-openharmony / vant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 812 Bytes
一键复制 编辑 原始数据 按行查看 历史
const { join } = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const NODE_ENV = process.env.NODE_ENV;
const definitions = {
production: {
'process.env.PublicPath': '"/vant/"'
},
development: {
'process.env.PublicPath': '"/"'
}
}
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: {
'@@': join(__dirname, 'packages'),
'@demo': join(__dirname, 'docs', 'site'),
},
},
plugins: [new webpack.DefinePlugin(definitions[NODE_ENV]), new CopyWebpackPlugin({ patterns: ['static'] })],
};
};
1
https://gitee.com/vant-openharmony/vant.git
git@gitee.com:vant-openharmony/vant.git
vant-openharmony
vant
vant
master

搜索帮助