Semantic-UI-LESS
Semantic-UI-LESS copied to clipboard
🔴 LESS files should have .less extension
All LESS files should have .less file extension. It not only best practice to do so but also there are issues with webpack loaders which do not recognise and do not process correctly .variables and .overrides files. theme.config
file should have .less extension as well.
Furthermore when including other less files, path should have .less extension (see for example semantic.less imports)
What's the latest on this? Anyone on the Semantic UI Team going to fix this so we can use it with LESS 3?
I've opened a PR that fixes the issues with Less 3: https://github.com/Semantic-Org/Semantic-UI-LESS/pull/44
What is the reason they exclude the .less
extension on .variables
and .overrides
? In my build pipeline I use a less-loader that looks for changes in .less
-files. The recompile is not triggered, since the loader cannot see the changes, as the files are not .less
, and I have to do this manually. Linting is also really weird, since tools like Visual Studio (2017/Code) will not view the file as .less
.