mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
components build
This commit is contained in:
14
build/webpack.components.js
Normal file
14
build/webpack.components.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var Components = require('../components.json');
|
||||
var config = require('./webpack.config.js');
|
||||
|
||||
delete config.devtool;
|
||||
|
||||
config.entry = Components;
|
||||
|
||||
config.output = {
|
||||
path: './lib',
|
||||
filename: '[name].js',
|
||||
libraryTarget: 'umd'
|
||||
};
|
||||
|
||||
module.exports = config;
|
Reference in New Issue
Block a user