mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[PR #46] [CLOSED] Update .less files to have a partial-style naming convention #648
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#648
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lipis/flag-icons/pull/46
Author: @karlito-who-else
Created: 3/2/2015
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
933973aUpdate .less files to have a partial-style naming convention in order that they will be bypassed by many popular LESS preprocessors.📊 Changes
4 files changed (+3 additions, -4 deletions)
View changed files
📝
less/_flag-icon-base.less(+0 -0)📝
less/_flag-icon-list.less(+0 -0)📝
less/_variabless.less(+0 -0)📝
less/flag-icon.less(+3 -4)📄 Description
Many servers and applications that support LESS compilation will not attempt to compile files prefixed with an underscore character by default - for example, this is the case with Harp, CodeKit, Koala, SimpLESS, etc.
In the case of Harp, which uses a "convention over configuration" approach to ignoring files, it is not possible to serve flag-icon-css if its full codebase is included in the public web root as Harp will attempt to compile variabless.less, flag-icon-base.less and flag-icon-list.less without being aware of their dependencies, and so the entire Harp compilation process will fail.
I realise that my use case is very specific to Harp, and while they do have some tickets open regarding the treatment of vendor code included in a sites bower_components directory, etc, there doesn't seem to be a lot of progress being made. I also feel that this change would generally be beneficial in that it would prevent the need for developers having to manually exclude the files from being compiled in CodeKit, Koala, etc.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.