You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/09/03 13:02:10 UTC

[GitHub] [cloudstack] mib1185 commented on issue #5277: replace import url for less.js with local lib

mib1185 commented on issue #5277:
URL: https://github.com/apache/cloudstack/issues/5277#issuecomment-912521599


   The `https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js` is default loaded by [`antd-theme-webpack-plugin` ](https://www.npmjs.com/package/antd-theme-webpack-plugin/v/1.3.9)
   It is possible to use an url or path as option `lessUrl` (should be added in [`ui/theme.config.js`](https://github.com/apache/cloudstack/blob/379454caae76279329c52aa6ae3eea389741d935/ui/theme.config.js)).
   
   So easiest solution would be to download `https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js` during build, place it in `<webroot>/js` and refer it as relativ path in `lessUrl` 🤔 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org