fix css transforms for mobile

This commit is contained in:
Jacky Zhao
2023-08-06 22:07:08 -07:00
parent d8d9dd22c9
commit cd9dc6ecb5
6 changed files with 10 additions and 14 deletions

View File

@ -12,7 +12,6 @@ import { rimraf } from "rimraf"
import chokidar from "chokidar"
import prettyBytes from "pretty-bytes"
import { execSync, spawnSync } from "child_process"
import { transform as cssTransform } from "lightningcss"
import http from "http"
import serveHandler from "serve-handler"
import { WebSocketServer } from "ws"
@ -312,14 +311,6 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started.
sassPlugin({
type: "css-text",
cssImports: true,
async transform(css) {
const { code } = cssTransform({
filename: "style.css",
code: Buffer.from(css),
minify: true,
})
return code.toString()
},
}),
{
name: "inline-script-loader",