Skip to content

Commit bc101e6

Browse files
chore: add jsdoc to tasks/css-tools.js
Co-authored-by: Rúben Carvalho <rubcar@sapo.pt>
1 parent 2ba741e commit bc101e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/css-tools.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ if (fs.existsSync(licensePath)) {
6363
header = header.replace('<%= YEAR %>', new Date().getFullYear());
6464
}
6565

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

0 commit comments

Comments
 (0)