Skip to content

Commit

Permalink
chore: add jsdoc to tasks/css-tools.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rúben Carvalho <[email protected]>
  • Loading branch information
castastrophe and rubencarvalho committed Jan 15, 2025
1 parent 2ba741e commit bc101e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/css-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ if (fs.existsSync(licensePath)) {
header = header.replace('<%= YEAR %>', new Date().getFullYear());
}

/**
* Processes a CSS file using lightningcss, minifies it, and outputs a TypeScript module.
* The output module includes license headers and wraps the CSS in a template literal.
*
* @param {string} cssPath - Path to the CSS file to process
* @returns {Promise<void>} A promise that resolves when processing is complete
*
*/
export const processCSS = async (cssPath) => {
return bundleAsync({
filename: cssPath,
Expand Down

0 comments on commit bc101e6

Please sign in to comment.