{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7985","labels_url":"https://api.github.com/repos/contao/core/issues/7985/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7985/comments","events_url":"https://api.github.com/repos/contao/core/issues/7985/events","html_url":"https://github.com/contao/core/issues/7985","id":103274141,"number":7985,"title":"[3.5.2] Hook für LessParser","user":{"login":"Sioweb","id":1318048,"avatar_url":"https://avatars.githubusercontent.com/u/1318048?v=3","gravatar_id":"","url":"https://api.github.com/users/Sioweb","html_url":"https://github.com/Sioweb","followers_url":"https://api.github.com/users/Sioweb/followers","following_url":"https://api.github.com/users/Sioweb/following{/other_user}","gists_url":"https://api.github.com/users/Sioweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Sioweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sioweb/subscriptions","organizations_url":"https://api.github.com/users/Sioweb/orgs","repos_url":"https://api.github.com/users/Sioweb/repos","events_url":"https://api.github.com/users/Sioweb/events{/privacy}","received_events_url":"https://api.github.com/users/Sioweb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contao/core/labels/defect","name":"defect","color":"bd2c00"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/contao/core/milestones/112","html_url":"https://github.com/contao/core/milestones/3.5.3","labels_url":"https://api.github.com/repos/contao/core/milestones/112/labels","id":1226977,"number":112,"title":"3.5.3","description":"Contao 3.5.3 (bugfix release)","creator":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":25,"state":"open","created_at":"2015-07-27T07:31:06Z","updated_at":"2015-09-04T18:26:35Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-26T13:49:10Z","updated_at":"2015-09-04T18:49:30Z","closed_at":null,"body":"Guten Tag,\r\n\r\nin meinen Css/Less Dateien verwende ich gerne width: calc(100% - 45px); woraus der Less-Parser dann 55% macht weil er nicht strictMath verwendet. \r\n\r\nIch würde vorschlagen diese Option generell zu aktivieren, oder besser einen Hook in die entsprechende Methode zu schreiben, damit der Parser angepasst werden kann:\r\n\r\n- system/modules/core/library/Contao/Combiner.php\r\n- Zeile 331 / Methode handleScssLess\r\n\r\n```\r\n$arrOptions = array(\r\n\t// 'strictMath' => true,\r\n\t'compress' => !\\Config::get('debugMode'),\r\n\t'import_dirs' => array(TL_ROOT . '/' . $strPath => $strPath)\r\n);\r\n\r\nif (isset($GLOBALS['TL_HOOKS']['handleScssLess']) && is_array($GLOBALS['TL_HOOKS']['handleScssLess'])) {\r\n\tforeach ($GLOBALS['TL_HOOKS']['handleScssLess'] as $callback) {\r\n\t  $this->import($callback[0]);\r\n\t  $arrOptions = $this->$callback[0]->$callback[1]($arrOptions);\r\n\t}\r\n}\r\n```\r\n\r\nGenerell wäre es nicht verkehrt die Vendoren konfigurieren zu können, was meint ihr? Damit die Optionen nicht verloren gehen könnte man mit array_merge arbeiten.\r\n\r\nDanke & Grüße\r\nSascha"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/137819055","html_url":"https://github.com/contao/core/issues/7985#issuecomment-137819055","issue_url":"https://api.github.com/repos/contao/core/issues/7985","id":137819055,"user":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T18:49:30Z","updated_at":"2015-09-04T18:49:30Z","body":"Bist Du sicher, dass die \"strictMath\"-Option hier richtig ist und nicht die \"strictUnits\"-Option?"}}