Semantic-UI-LESS icon indicating copy to clipboard operation
Semantic-UI-LESS copied to clipboard

🔴 LESS files should have .less extension

Open igo opened this issue 7 years ago • 3 comments

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)

igo avatar Dec 02 '17 19:12 igo

What's the latest on this? Anyone on the Semantic UI Team going to fix this so we can use it with LESS 3?

davidpanzarella avatar Mar 09 '18 22:03 davidpanzarella

I've opened a PR that fixes the issues with Less 3: https://github.com/Semantic-Org/Semantic-UI-LESS/pull/44

sciyoshi avatar Jun 07 '18 05:06 sciyoshi

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.

thomasdarvik avatar Jun 11 '18 11:06 thomasdarvik