I have asked to clean up the LESS library and style file referenced in the head section of the application for redundancy and decreasing load time. The style file is basically style.less file and it is containing all other less files, I need to come up with single CSS file that could be style.css so everything is fine like I am getting the CSS output as style.css but there are a couple of files which are not compiling and changing in CSS. Below is a preview of style.less with other imported less files.
content of style.less
@import url('variables.less');
@import url('mixins.less');
@import url('base.less');
@import url('kendo.less');
@import url('header.less');
@import url('navigation.less');
@import url('lists.less');
@import url('treeview.less');
Where that variables.less and mixins.less are not compiling in CSS I don't know what is missing, there are nested rules applied in them may be they are making errors as I heard that there is a need for a config file to process nested variables and mixins when imported and used for plain CSS. I am unable to find the solutions to this, your help will be highly appreciated. Many thanks.
mixin.less
andvariables.less
are usually used for .. (yeah, suprise) variable and mixin definitions - they normally should not generate any CSS code on their own at all. Also speaking of "clean up", you don't needurl
in Less imports (unless it's real URL) - just@import 'variables';
etc. would be absolutely fine. – seven-phases-maxvariables
(assuming some it contains global definitions/overrides that may affect CSS in any other imported components) should be the last file in imports (because of lazy-loading). – seven-phases-max