less 파일을 작성하고 컴파일하면,
줄바꿈이 되어 컴파일 되는데요.
원하는 결과
html {overflow-y:scroll}
컴파일 결과
html{
overflow-y:scroll
}
원하는 결과처럼 한 줄에 쭉 나오도록 설정할 수 있을까요?
그누보드5에 less 원본파일도 함께 포함시킬까 고민 중입니다.
댓글 18개
사용하시는 컴파일러에 따라서 가능한 옵션이 있지 않을까요?
lessphp (https://github.com/leafo/lessphp/) 를 사용하신다면,
컴파일 포맷을 조정할 수 있는것 같아요. http://leafo.net/lessphp/docs/#custom_formatter
원하시는 것을 하려면
$formatter->break = " "; 로 하면 될것 같아보여요.. ( https://github.com/leafo/lessphp/blob/master/lessc.inc.php#L3622 )
lessphp (https://github.com/leafo/lessphp/) 를 사용하신다면,
컴파일 포맷을 조정할 수 있는것 같아요. http://leafo.net/lessphp/docs/#custom_formatter
원하시는 것을 하려면
$formatter->break = " "; 로 하면 될것 같아보여요.. ( https://github.com/leafo/lessphp/blob/master/lessc.inc.php#L3622 )
한칸 여백은 lessc.inc.php formatter 에서 조정하면 되네요.
public $openSingle = " { ";
public $closeSingle = " }";
을
public $openSingle = " {";
public $closeSingle = "}";
로... ㅎㅎㅎ
For more information about what can be configured with the formatter consult the source code.
이 안내 문구가 참 재밌네요. 보통은 formatter 를 쫙 나열해서 안내했을텐데 말이죠.
뭔가 개발자다운 느낌이 든달까요? ^^
public $openSingle = " { ";
public $closeSingle = " }";
을
public $openSingle = " {";
public $closeSingle = "}";
로... ㅎㅎㅎ
For more information about what can be configured with the formatter consult the source code.
이 안내 문구가 참 재밌네요. 보통은 formatter 를 쫙 나열해서 안내했을텐데 말이죠.
뭔가 개발자다운 느낌이 든달까요? ^^
게시글 목록
| 번호 | 제목 |
|---|---|
| 1743 | |
| 1740 | |
| 1738 | |
| 1734 | |
| 1721 | |
| 1712 | |
| 1709 | |
| 1708 | |
| 1700 | |
| 1690 | |
| 1685 | |
| 1684 | |
| 1680 | |
| 1678 | |
| 1672 | |
| 1670 | |
| 1668 | |
| 1660 | |
| 1657 | |
| 1651 | |
| 1647 | |
| 1640 | |
| 1632 | |
| 1631 | |
| 1618 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기