Skip to content

Instantly share code, notes, and snippets.

@devwax
devwax / inline-styles.mjs
Last active May 17, 2023 01:05 — forked from farolanf/inline-styles.mjs
Astro JS - Inline CSS
import path from 'node:path'
import fs from 'node:fs/promises'
import { globby } from 'globby'
const files = await globby('./dist/**/index.html')
await Promise.all(
files.map(async (htmlPath) => {
const pageStyles = []
const stylesPaths = []