MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / setup

Function setup

packages/overlay/build.ts:22–31  ·  view source on GitHub ↗
(build)

Source from the content-addressed store, hash-verified

20 return {
21 name: 'custom',
22 setup(build) {
23 if (is_dev) return
24
25 // minify css during build
26 build.onLoad({filter: /\.css$/}, async args => {
27 const file = await fsp.readFile(args.path)
28 const css = await esb.transform(file, {loader: "css", minify: true})
29 return {loader: "text", contents: css.code}
30 })
31 },
32 }
33}
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…