From bc101e67cb703e397549a8b343c486e44ecd2c06 Mon Sep 17 00:00:00 2001 From: "[ Cassondra ]" Date: Wed, 15 Jan 2025 09:57:02 -0500 Subject: [PATCH] chore: add jsdoc to tasks/css-tools.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RĂºben Carvalho --- tasks/css-tools.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/css-tools.js b/tasks/css-tools.js index 33a6a40895..336111b6fd 100644 --- a/tasks/css-tools.js +++ b/tasks/css-tools.js @@ -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} A promise that resolves when processing is complete + * + */ export const processCSS = async (cssPath) => { return bundleAsync({ filename: cssPath,