From 8879f859f7fe0e0cbec12a6c33a6b83a8b100779 Mon Sep 17 00:00:00 2001 From: jingsam Date: Thu, 17 Nov 2016 16:28:36 +0800 Subject: [PATCH] fixed umd --- build/webpack.dist.dev.config.js | 7 ++++++- build/webpack.dist.prod.config.js | 7 ++++++- test/routers/tag.vue | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/build/webpack.dist.dev.config.js b/build/webpack.dist.dev.config.js index 98a18f1..e053a3f 100644 --- a/build/webpack.dist.dev.config.js +++ b/build/webpack.dist.dev.config.js @@ -14,7 +14,12 @@ module.exports = { umdNamedDefine: true }, externals: { - 'vue': 'vue' + vue: { + root: 'Vue', + commonjs: 'vue', + commonjs2: 'vue', + amd: 'vue' + } }, resolve: { extensions: ['', '.js', '.vue'] diff --git a/build/webpack.dist.prod.config.js b/build/webpack.dist.prod.config.js index 636a151..33be1cf 100644 --- a/build/webpack.dist.prod.config.js +++ b/build/webpack.dist.prod.config.js @@ -14,7 +14,12 @@ module.exports = { umdNamedDefine: true }, externals: { - 'vue': 'vue' + vue: { + root: 'Vue', + commonjs: 'vue', + commonjs2: 'vue', + amd: 'vue' + } }, resolve: { extensions: ['', '.js', '.vue'] diff --git a/test/routers/tag.vue b/test/routers/tag.vue index 90931f8..064959d 100644 --- a/test/routers/tag.vue +++ b/test/routers/tag.vue @@ -42,7 +42,7 @@