support babel-plugin-import

This commit is contained in:
陈嘉涵
2017-07-28 15:43:28 +08:00
parent 50983ca28e
commit 5128a718e1
6 changed files with 106 additions and 14 deletions

View File

@@ -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: {