Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 73
  1. [[toc]] [!

  2. When building a project, it's very likely that we will install third-party packages from npm to offload some tasks.

  3. Hello Tokyo!

    日本語 Seven years ago, my first visit to Japan - a trip to 大阪(Osaka), 京都(Kyoto), and 北海道(Hokkaido) - planted the seed of wanting to live in Japan one day.

  4. Photos Page

    As you might have noticed, I added a photos page on this site recently.

  5. The Coloring Problem In modern programming, the function coloring problem isn't new.

  6. Move on to ESM-only

    [[toc]] Three years ago, I wrote a post about shipping ESM & CJS in a single package, advocating for dual CJS/ESM formats to ease user migration and trying to make the best of both worlds.

  7. If you've been following my work in open source, you might have noticed that I have a tendency to stick with zero-major versioning, like v0.x.x.

  8. CPU Profiling Nuxt

    If you want to debug the bundling performance of your Nuxt app to generate CPU profiles.

  9. Go to nuxt.com and read the full post.

  10. [[toc]] [!

  11. Go to nuxt.com and read the full article.

  12. Go to eslint.org and read the full announcement.

  13. Slides: PDF | SPA Made with Slidev - presentation slides for developers.

  14. [[toc]] 中文翻译 Chinese Version TL;DR: I am doing great and not going anywhere.

  15. Go to nuxt.com and read the full article.

  16. [[toc]] Magic Move is a feature for transition in Keynote, or it's called Morph Transition in PowerPoint, and it automatically animates the transitions for objects between slides.

  17. Slides: PDF | SPA Made with Slidev - presentation slides for developers.

  18. TwoSlash with Shiki

    Here is an example of using TwoSlash with Shiki: // @errors: 2540 console.log((1 + 2 + 3 + 4).toFixed(2)) // ^| interface Todo { title: string } const todo: Readonly<Todo> = { title: 'Delete inactive users', // ^?

  19. GitHub-style Alerts

    [!

  20. Nuxt Devtools v1.0

    Go to nuxt.com and read the full announcement.

  21. Slides: PDF | SPA Made with Slidev - presentation slides for developers.

  22. Slides: PDF | SPA Recording: YouTube Made with Slidev - presentation slides for developers.

  23. Slides: PDF | SPA Recording: YouTube Made with Slidev - presentation slides for developers.

  24. Animated SVG Logo

    I recently replaced the logo on the top left corner with an animated SVG: Inspiration The first time I saw such stroke animations in SVG is the Material Line Icons by Vjacheslav Trushkin.

  25. pnpm on External disk

    If you tried to use pnpm to install a project on an external disk, it may not work right away because pnpm is heavily relying on symlinks, which doesn't work cross mount points.

  26. [[toc]] Co-authored by Anthony Fu, 赛博迪克朗, wangcai and 代々木 This is a live document, will be updated as we learn more.

  27. [[toc]] Update: New blog posts - Stable Diffusion QR Code 101 Last week, I wrote a blog post about how I learned to generate scannable QR Codes.

  28. [[toc]] Update: New blog posts 👉 Refining AI Generated QR Code 📚 Stable Diffusion QR Code 101 Yesterday, I created this image using Stable Diffusion and ControlNet, and shared on Twitter -- an illustration that also functions as a scannable QR code.

  29. DX with Nuxt DevTools

    Slides: PDF | SPA Recording: YouTube Made with Slidev - presentation slides for developers.

  30. Slides: PDF | SPA Recording: YouTube | 哔哩哔哩 Made with Slidev - presentation slides for developers.

  31. As you might notice, I recently added a sliding enter effect to almost all the pages in my blog.

  32. Go to nuxt.com and read the full announcement.

  33. Break Lines in JS

    You probably don't need it usually, but in case you want to break lines programmatically in JavaScript, here is my lazy man's solution: // break lines at space with maximum 25 characters per line text.split(/(.{0,25})(?

  34. Slides: PDF | SPA Recording: YouTube | Bilibili (中文) Made with Slidev - presentation slides for developers.

  35. Bonjour Paris!

    Bonjour Paris!

  36. Patterns of VueUse

    Vue Fes Japan 2022 Slides: PDF | SPA Made with Slidev - presentation slides for developers.

  37. Vite, the on-demand DX

    ViteConf Slides: PDF | SPA Recording: YouTube Made with Slidev - presentation slides for developers.

  38. [[toc]] In Nuxt 3, we introduced first-class support for Vite as bundler, interchangeable with Webpack (also available in Nuxt 2 with Bridge).

  39. [[toc]] 中文 Chinese Version I have started writing this post multiple times but never ended up posting it.

  40. [[toc]] 中文 Chinese Version If you have ever browsed the issue lists in my repos or created one, you might sometimes see I reply with the following comment and then close the issue: We temporarily close this due to the lack of enough information.

  41. Introduction to Vitest

    Slides: PDF | SPA Recording: YouTube Made with Slidev - presentation slides for developers.

  42. [[toc]] ESM & CJS ESM - ECMAScript modules CJS - CommonJS In the past decade, due to the lack of a standard module system of JavaScript, CommonJS (a.k.a the require('xxx') and module.exports syntax) has been the way how Node.js and NPM packages work.

  43. Icons in Pure CSS

    [[toc]] 中文 Chinese Version In my previous post about Reimagine Atomic CSS, I introduced a preset of UnoCSS that provides the ability to use any icons on-demand in purely CSS.

  44. Reimagine Atomic CSS

    [[toc]] This post will be a bit longer than usual.

  45. New Ways to Vue

    Slides: PDF | SPA Recording: YouTube Made with Slidev - presentation slides for developers.

  46. Range in JavaScript

    Credit to GitHub Copilot.

  47. [[toc]] About one year ago, I wrote a blog post Journey with Icons, sharing the tools I have made for solving my needs on using icons in frontend projects.

  48. Isomorphic `__dirname`

    In ESM, you might found your old friends __dirname and __filename are no longer available.

  49. GitHub Co-authors

    You might found GitHub sometimes shows you a commit with multiple authors.

  50. There is a major caveat when working with asynchronous functions in Vue Composition API, that I believe many of you have ever come across.