Last active
January 28, 2025 16:21
-
-
Save cecilemuller/fcfe7b09764ca40fa435b540e59d9a76 to your computer and use it in GitHub Desktop.
Revisions
-
cecilemuller revised this gist
Jan 28, 2025 . No changes.There are no files selected for viewing
-
cecilemuller created this gist
Jan 28, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import type { PluginOption } from "vite"; import { format } from "prettier"; export function plugin(): PluginOption { return { name: "example", transformIndexHtml: async (html) => format(html, { // https://prettier.io/docs/en/options.html parser: "html", htmlWhitespaceSensitivity: "ignore" }) }; }