MCPcopy Create free account
hub / github.com/csskit/csskit / buildJS

Function buildJS

website/eleventy.config.js:16–28  ·  view source on GitHub ↗
(config = {})

Source from the content-addressed store, hash-verified

14const { permalink } = markdownItAnchor;
15
16const buildJS = (config = {}) => {
17 return build({
18 minify: process.NODE_ENV === "development" ? false : true,
19 bundle: true,
20 splitting: true,
21 write: true,
22 format: "esm",
23 metafile: true,
24 outdir: "_site/script",
25 plugins: [wasmLoader()],
26 ...config,
27 });
28};
29
30const buildCSS = (config = {}) => {
31 for (const file of config.entryPoints) {

Callers 1

eleventy.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected