Skip to content

Commit

Permalink
Add types for css files
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Jan 9, 2025
1 parent e056158 commit 1353a63
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 {}')
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.d.min.css.ts'), 'export {}')
console.info(
chalk.green('✓ Minified Bundle CSS:'),
chalk.magenta(path.relative(cwd, outfile).replace(/\.css$/, '.min.css')),
Expand Down

0 comments on commit 1353a63

Please sign in to comment.