fixed umd
This commit is contained in:
parent
f0698bdd54
commit
8879f859f7
3 changed files with 13 additions and 3 deletions
|
@ -14,7 +14,12 @@ module.exports = {
|
|||
umdNamedDefine: true
|
||||
},
|
||||
externals: {
|
||||
'vue': 'vue'
|
||||
vue: {
|
||||
root: 'Vue',
|
||||
commonjs: 'vue',
|
||||
commonjs2: 'vue',
|
||||
amd: 'vue'
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.vue']
|
||||
|
|
|
@ -14,7 +14,12 @@ module.exports = {
|
|||
umdNamedDefine: true
|
||||
},
|
||||
externals: {
|
||||
'vue': 'vue'
|
||||
vue: {
|
||||
root: 'Vue',
|
||||
commonjs: 'vue',
|
||||
commonjs2: 'vue',
|
||||
amd: 'vue'
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.vue']
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue