Skip to content

Commit

Permalink
feat: use createApp api
Browse files Browse the repository at this point in the history
This commit uses vue 3 createApp api instead of vue 2 Vue.use. The
productionTip config has also been removed from vue 3.
  • Loading branch information
luqven committed Jul 8, 2021
1 parent f802f76 commit 7b4dd29
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import VueImgix from '@/plugins/vue-imgix';
import Vue from 'vue';
import { createApp } from 'vue';
import App from './App.vue';

Vue.config.productionTip = false;
export const app = createApp(App);

Vue.use(VueImgix, {
domain: 'assets.imgix.net',
defaultIxParams: {
auto: 'format',
},
});

new Vue({
render: (h) => h(App),
}).$mount('#app');
app
.use(VueImgix, {
domain: 'assets.imgix.net',
defaultIxParams: {
auto: 'format',
},
})
.mount('#app');

0 comments on commit 7b4dd29

Please sign in to comment.