파일로 내 프로젝트에서 @import
font-awesome을 시도하고 있습니다. 그것은 전에 잘 작동하지만 지금은 대신, 가져올 수있는 방법을 변경 :자산 통합이 더 적은 글꼴을로드하는 데 실패했습니다. @ {}
echo Assets::factory($filename)->css("application.less", array('processor' => 'cssmin'))->render();
은 내가 application.less
@import
자체를 모든 파일을로드합니다. (CSS/이하)
그러나 나는 다음과 같은 오류 얻을 :
Exception [ 0 ]: parse error: failed at
{C:\wamp\www\haras-des-cybeles-du-luberon\assets\themes\backoffice\styles\/font-awesome/core.less on line 4
MODPATH \의 자산 합병 \ 공급 업체에 \ lessphp \ lessc.inc.php [3144]
3139 $loc = "line: $line";
3140 }
3141
3142 // TODO this depends on $this->count
3143 if ($this->peek("(.*?)(\n|$)", $m, $count)) {
3144 throw new exception("$msg: failed at `$m[1]` $loc");
3145 } else {
3146 throw new exception("$msg: $loc");
3147 }
3148 }
기본적으로 이전에 동일한 플러그인으로 작동했기 때문에 플러그인 문제라고 생각합니다. https://github.com/OpenBuildings/asset-merger
이전에이 구문을 본 적이 없더라도 적은 코드가 괜찮다고 생각합니다. 내가 여기에서 작동하도록하는 임시 해결책이 있습니까? 정규 표현식을 변경하는 것에 대해 궁금합니다. 고마워.