Commit 8879f859f7fe0e0cbec12a6c33a6b83a8b100779

Authored by jingsam
1 parent f0698bdd

fixed umd

build/webpack.dist.dev.config.js
... ... @@ -14,7 +14,12 @@ module.exports = {
14 14 umdNamedDefine: true
15 15 },
16 16 externals: {
17   - 'vue': 'vue'
  17 + vue: {
  18 + root: 'Vue',
  19 + commonjs: 'vue',
  20 + commonjs2: 'vue',
  21 + amd: 'vue'
  22 + }
18 23 },
19 24 resolve: {
20 25 extensions: ['', '.js', '.vue']
... ...
build/webpack.dist.prod.config.js
... ... @@ -14,7 +14,12 @@ module.exports = {
14 14 umdNamedDefine: true
15 15 },
16 16 externals: {
17   - 'vue': 'vue'
  17 + vue: {
  18 + root: 'Vue',
  19 + commonjs: 'vue',
  20 + commonjs2: 'vue',
  21 + amd: 'vue'
  22 + }
18 23 },
19 24 resolve: {
20 25 extensions: ['', '.js', '.vue']
... ...
test/routers/tag.vue
... ... @@ -42,7 +42,7 @@
42 42 </Modal>
43 43 </template>
44 44 <script>
45   - import { Tag, Modal, iButton } from '../../dist/iview.js';
  45 + import { Tag, Modal, iButton } from 'iview';
46 46 export default {
47 47 components: { Tag, Modal, iButton },
48 48 data () {
... ...