cssnano
Version:
A modular CSS minifier, built on top of the PostCSS ecosystem.
12 lines (10 loc) • 304 B
JavaScript
/**
* A comment whose text starts with `!` is the convention for licenses and notices
* that minifiers keep.
* @param {string} text comment text, excluding the delimiters
* @return {boolean}
*/
function isImportantComment(text) {
return text.startsWith('!');
}
export default isImportantComment;