diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-13 13:46:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 13:46:03 -0700 |
commit | c11c45a661addf377ac5f4773ba39f5ef66ec155 (patch) | |
tree | 204cd561549dd6424d7e07c88b042e3bce62d608 /src/main.js | |
parent | d57821b5fa8b994bc4082f7565a072090ff288a1 (diff) | |
parent | 0eca982f8bc89bbac3ed4fee248fc53b7c4c0527 (diff) | |
download | homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.tar.gz homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.tar.zst homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.zip |
Merge pull request #482 from bastienwirtz/vuejs-3
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..a1d7b47 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-mount"); |
18 | render: (h) => h(App), | ||
19 | }).$mount("#app"); | ||