Commit 8879f859f7fe0e0cbec12a6c33a6b83a8b100779
1 parent
f0698bdd
fixed umd
Showing
3 changed files
with
13 additions
and
3 deletions
Show diff stats
build/webpack.dist.dev.config.js
| @@ -14,7 +14,12 @@ module.exports = { | @@ -14,7 +14,12 @@ module.exports = { | ||
| 14 | umdNamedDefine: true | 14 | umdNamedDefine: true |
| 15 | }, | 15 | }, |
| 16 | externals: { | 16 | externals: { |
| 17 | - 'vue': 'vue' | 17 | + vue: { |
| 18 | + root: 'Vue', | ||
| 19 | + commonjs: 'vue', | ||
| 20 | + commonjs2: 'vue', | ||
| 21 | + amd: 'vue' | ||
| 22 | + } | ||
| 18 | }, | 23 | }, |
| 19 | resolve: { | 24 | resolve: { |
| 20 | extensions: ['', '.js', '.vue'] | 25 | extensions: ['', '.js', '.vue'] |
build/webpack.dist.prod.config.js
| @@ -14,7 +14,12 @@ module.exports = { | @@ -14,7 +14,12 @@ module.exports = { | ||
| 14 | umdNamedDefine: true | 14 | umdNamedDefine: true |
| 15 | }, | 15 | }, |
| 16 | externals: { | 16 | externals: { |
| 17 | - 'vue': 'vue' | 17 | + vue: { |
| 18 | + root: 'Vue', | ||
| 19 | + commonjs: 'vue', | ||
| 20 | + commonjs2: 'vue', | ||
| 21 | + amd: 'vue' | ||
| 22 | + } | ||
| 18 | }, | 23 | }, |
| 19 | resolve: { | 24 | resolve: { |
| 20 | extensions: ['', '.js', '.vue'] | 25 | extensions: ['', '.js', '.vue'] |
test/routers/tag.vue
| @@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
| 42 | </Modal> | 42 | </Modal> |
| 43 | </template> | 43 | </template> |
| 44 | <script> | 44 | <script> |
| 45 | - import { Tag, Modal, iButton } from '../../dist/iview.js'; | 45 | + import { Tag, Modal, iButton } from 'iview'; |
| 46 | export default { | 46 | export default { |
| 47 | components: { Tag, Modal, iButton }, | 47 | components: { Tag, Modal, iButton }, |
| 48 | data () { | 48 | data () { |