UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

19 lines (13 loc) 831 B
'use strict'; const CDN_RE = /https?:\/\/kendo\.cdn\.telerik\.com\/themes\/[^/]+\/default\/default-main\.css/g; const MERIDIAN_CDN = 'https://kendo.cdn.telerik.com/themes/14.0.0/meridian/meridian-main.css'; module.exports = function transformer(fileInfo) { if (!/\.html?$/i.test(fileInfo.path)) { return undefined; } const source = fileInfo.source; const updated = source.replace(CDN_RE, MERIDIAN_CDN); return updated !== source ? updated : undefined; }; module.exports.aiInstructions = `The Default theme CDN link in your HTML files has been updated to the new Meridian theme. Review the updated stylesheet reference and confirm the Meridian theme fits your design needs. If you prefer to stay on the Default theme, revert this change — the Default theme continues to work but is now in maintenance mode.`;