fixed umd

This commit is contained in:
jingsam 2016-11-17 16:28:36 +08:00
parent f0698bdd54
commit 8879f859f7
3 changed files with 13 additions and 3 deletions

View file

@ -14,7 +14,12 @@ module.exports = {
umdNamedDefine: true
},
externals: {
'vue': 'vue'
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
},
resolve: {
extensions: ['', '.js', '.vue']

View file

@ -14,7 +14,12 @@ module.exports = {
umdNamedDefine: true
},
externals: {
'vue': 'vue'
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
},
resolve: {
extensions: ['', '.js', '.vue']

View file

@ -42,7 +42,7 @@
</Modal>
</template>
<script>
import { Tag, Modal, iButton } from '../../dist/iview.js';
import { Tag, Modal, iButton } from 'iview';
export default {
components: { Tag, Modal, iButton },
data () {