| | |
| | | import esbuild from 'esbuild' |
| | | import chalk from 'chalk' |
| | | import requireFromString from 'require-from-string' |
| | | import { sassPlugin } from 'esbuild-sass-plugin' |
| | | |
| | | const fp = "./quartz.config.ts" |
| | | const { version } = JSON.parse(readFileSync("./package.json").toString()) |
| | |
| | | format: "cjs", |
| | | jsx: "automatic", |
| | | jsxImportSource: "preact", |
| | | external: ["@napi-rs/simple-git"] |
| | | external: ["@napi-rs/simple-git"], |
| | | plugins: [sassPlugin({ |
| | | type: 'css-text' |
| | | })] |
| | | }).catch(err => { |
| | | console.error(`${chalk.red("Couldn't parse Quartz configuration:")} ${fp}`) |
| | | console.log(`Reason: ${chalk.grey(err)}`) |