Hey, I'm Harlan 👋
74 | {{ post.excerpt }}
21 | 22 |6 | I'll be posting new articles every couple of weeks about what I'm working on. Sign up for below and I'll email you when I post something new. 7 |
8 | 23 |Thanks for signing up :)
24 |Please enter your email to subscribe
127 | 128 |
243 |
307 | Please make sure you've read our Forum Rules before replying.
378 |
430 |
431 | ### Mixins and composables
432 |
433 | This one should be pretty obvious and there are enough articles elsewhere on using these.
434 |
435 | You want to pull out common logic from components and put them in either mixins or composables.
436 |
437 | Check out [vueuse](https://github.com/antfu/vueuse) for some ideas on what that could look like.
438 |
439 |
440 | ## Thanks for reading
441 |
442 | If you like the technical side of Vue and Laravel, I'll be posting regular articles on this site. The best
443 | way to keep up to date is by following me [@harlan_zw](https://twitter.com/harlan_zw) or signing up for the newsletter below.
444 |
--------------------------------------------------------------------------------
/app/blog/vue-automatic-component-imports/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Building a Vue Auto Component Importer - A Better Dev Experience"
3 | description: "Components magically being imported into your app is the latest developer experience trend in Vue. Why does it exist and how does it work?"
4 | head:
5 | - - meta
6 | - name: description
7 | content: "Components magically being imported into your app is the latest developer experience trend in Vue. Why does it exist and how does it work?"
8 | - - meta
9 | - property: "og:type"
10 | content: "website"
11 | - - meta
12 | - property: "og:url"
13 | content: "https://harlanzw.com/blog/vue-automatic-component-imports/"
14 | - - meta
15 | - property: "og:title"
16 | content: "Building a Vue Auto Component Importer - A Better Dev Experience"
17 | - - meta
18 | - property: "og:description"
19 | content: "Components magically being imported into your app is the latest developer experience trend in Vue. Why does it exist and how does it work?"
20 | - - meta
21 | - property: "og:image"
22 | content: "https://harlanzw.com/social/vue-automatic-component-imports.png"
23 | - - meta
24 | - property: "twitter:card"
25 | content: "summary_large_image"
26 | - - meta
27 | - property: "twitter:url"
28 | content: "https://harlanzw.com/blog/vue-automatic-component-imports/"
29 | - - meta
30 | - property: "twitter:title"
31 | content: "Building a Vue Auto Component Importer - A Better Dev Experience"
32 | - - meta
33 | - property: "twitter:description"
34 | content: "Components magically being imported into your app is the latest developer experience trend in Vue. Why does it exist and how does it work?"
35 | - - meta
36 | - property: "twitter:image"
37 | content: "https://harlanzw.com/social/vue-automatic-component-imports.png"
38 | ---
39 |
40 |
153 |
217 |
124 |
186 |
196 |
258 |