diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-06-04 22:40:48 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-02 21:16:41 +0200 |
commit | cbbed6346a437e6b9f05f646f1df0c77d2fb36eb (patch) | |
tree | 50d887f10739036a374065ebea047f891ad223a7 /src/main.js | |
parent | 95c589ba71d80ed0073158bbb6f81ec449b058d6 (diff) | |
download | homer-cbbed6346a437e6b9f05f646f1df0c77d2fb36eb.tar.gz homer-cbbed6346a437e6b9f05f646f1df0c77d2fb36eb.tar.zst homer-cbbed6346a437e6b9f05f646f1df0c77d2fb36eb.zip |
Migrate to VueJS 3
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/main.js b/src/main.js index e5995a4..164d290 100644 --- a/src/main.js +++ b/src/main.js | |||
@@ -1,19 +1,13 @@ | |||
1 | import Vue from "vue"; | 1 | import { createApp, h } from "vue"; |
2 | import App from "./App.vue"; | 2 | import App from "./App.vue"; |
3 | import "./registerServiceWorker"; | ||
4 | 3 | ||
5 | import "@fortawesome/fontawesome-free/css/all.css"; | 4 | import "@fortawesome/fontawesome-free/css/all.css"; |
6 | |||
7 | import "./assets/app.scss"; | 5 | import "./assets/app.scss"; |
8 | 6 | ||
9 | Vue.config.productionTip = false; | 7 | const app = createApp(App); |
10 | 8 | ||
11 | Vue.component("DynamicStyle", { | 9 | app.component("DynamicStyle", (_props, context) => { |
12 | render: function (createElement) { | 10 | return h("style", {}, context.slots); |
13 | return createElement("style", this.$slots.default); | ||
14 | }, | ||
15 | }); | 11 | }); |
16 | 12 | ||
17 | new Vue({ | 13 | app.mount("#app"); |
18 | render: (h) => h(App), | ||
19 | }).$mount("#app"); | ||