mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
support babel-plugin-import
This commit is contained in:
@@ -5,7 +5,12 @@ const webpack = require('webpack');
|
||||
|
||||
delete config.devtool;
|
||||
|
||||
config.entry = Components;
|
||||
const entry = {};
|
||||
Object.keys(Components).forEach(key => {
|
||||
entry[key + '/index'] = Components[key];
|
||||
});
|
||||
|
||||
config.entry = entry;
|
||||
|
||||
config.externals = {
|
||||
vue: {
|
||||
|
Reference in New Issue
Block a user