(config = {})
| 14 | const { permalink } = markdownItAnchor; |
| 15 | |
| 16 | const 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 | |
| 30 | const buildCSS = (config = {}) => { |
| 31 | for (const file of config.entryPoints) { |