@ckeditor/ckeditor5-dev-utils
Version:
Utils for CKEditor 5 development tools packages.
24 lines (19 loc) • 719 B
JavaScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
;
module.exports = function getLicenseBanner() {
const date = new Date();
// License banner starts with `!`. That combines with uglifyjs' `comments` /^!/ option
// make webpack preserve that banner while cleaning code from others comments during the build task.
// It's because UglifyJsWebpackPlugin minification takes place after adding a banner.
/* eslint-disable indent */
return (
`/*!
* @license Copyright (c) 2003-${ date.getFullYear() }, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/`
);
/* eslint-enable indent */
};