Skip to content

Commit

Permalink
Add types for css files (#5591)
Browse files Browse the repository at this point in the history
Co-authored-by: Remco Haszing <[email protected]>
  • Loading branch information
Murderlon and remcohaszing authored Jan 13, 2025
1 parent f293219 commit a2f1b0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/build-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ async function compileCSS () {
}
await mkdir(outdir, { recursive: true })
await writeFile(outfile, postcssResult.css)
await writeFile(path.join(outdir, 'style.d.css.ts'), 'export {}\n')
console.info(
chalk.green('✓ Built Uppy CSS:'),
chalk.magenta(path.relative(cwd, outfile)),
Expand All @@ -85,6 +86,7 @@ async function compileCSS () {
console.warn(warn.toString())
})
await writeFile(outfile.replace(/\.css$/, '.min.css'), minifiedResult.css)
await writeFile(path.join(outdir, 'style.min.d.css.ts'), 'export {}\n')
console.info(
chalk.green('✓ Minified Bundle CSS:'),
chalk.magenta(path.relative(cwd, outfile).replace(/\.css$/, '.min.css')),
Expand Down

0 comments on commit a2f1b0c

Please sign in to comment.