Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for css files #5591

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add types for css files
  • Loading branch information
Murderlon committed Jan 9, 2025
commit 1353a635e0b4f49b1a625b5ef964569a7b718004
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
Loading