mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
* upgrade dependencies * 更改所有 saladcss 写法 * fix: 升级依赖导致的样式错误 * fix: build vant css * use es module when pack && webpack scope hoisting * fix: vue module version * delete unused npm script * fix: build:vant script not work * fix: webpack config format * fix: build minify vant.js * fix: captain ui relative link
27 lines
487 B
JavaScript
27 lines
487 B
JavaScript
const path = require('path');
|
|
const Components = require('../components.json');
|
|
const config = require('./webpack.build.js');
|
|
const webpack = require('webpack');
|
|
|
|
delete config.devtool;
|
|
|
|
config.entry = Components;
|
|
|
|
config.externals = {
|
|
vue: {
|
|
root: 'Vue',
|
|
commonjs: 'vue',
|
|
commonjs2: 'vue',
|
|
amd: 'vue'
|
|
}
|
|
};
|
|
|
|
config.output = {
|
|
path: path.join(__dirname, '../lib'),
|
|
filename: '[name].js',
|
|
libraryTarget: 'umd',
|
|
umdNamedDefine: true
|
|
};
|
|
|
|
module.exports = config;
|