@ckeditor/ckeditor5-dev-utils
Version:
Utils for CKEditor 5 development tools packages.
24 lines (20 loc) • 500 B
JavaScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
;
/**
* A plugin that prepends a path to the file in the comment for each file
* processed by PostCSS.
*
* @returns {Function} A PostCSS plugin.
*/
module.exports = () => {
return {
postcssPlugin: 'postcss-ckeditor5-theme-logger',
Once( root ) {
root.prepend( `/* ${ root.source.input.file } */ \n` );
}
};
};
module.exports.postcss = true;