use vue in amd & commonjs, use Vue in root (#4)

* change require vue to Vue && waterfall.md

* use vue in amd & commonjs, use Vue in root
This commit is contained in:
Yao 2017-04-23 13:44:56 +08:00 committed by 张敏
parent 1333b8d7d5
commit 242c06ecf4
2 changed files with 12 additions and 2 deletions

View File

@ -13,7 +13,12 @@ config.output = {
};
config.externals = {
vue: 'Vue'
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
};
config.plugins = [

View File

@ -7,7 +7,12 @@ delete config.devtool;
config.entry = Components;
config.externals = {
vue: 'Vue'
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
};
config.output = {