[TYPO3-dev] Best way to use less in typo3

Jost Baron jost.baron at gmx.de
Fri Mar 7 13:09:43 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Philipp,

On 03/07/2014 12:59 PM, Philipp Wrann wrote:
> There are a few extensions out there for using less, i want to
> know whats the best in your opinnion.
> 
> At the moment i am using t3_less but its a very bad choice i think.
> It allways parses all less files in the source directory, so i cant
> create different setups for different purposes.
> 
> I thought of writing my own extension cause i need very basic
> features but there has to be something existing....
> 
> i simple need 1) inlcuding less file like page.includeCss.setup =
> path/to/setup.less 2) cachingservice that does not check the
> physical file on every request, i would prefer a manual flushing.
> 
> share your experiences please :)

I've also only made bad experiences using a less extension:

 * The typically use phpless, which leaps behind the original LESS,
and e.g. bootstrap 3 does not compile with them.
 * t3_less has the problem you described (and some more, the extension
implements some parts of parsing itself)
 * amazingless spams typo3temp with files

Best thing is to compile your less and then deploy it. Some task
runner helps to automate that.

Regards,
Jost
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTGbcHAAoJEG6HPMAgWtVzuK8P/i4BOh65edIlEOKO4WH27X0r
9CYpdVRsaOhI57p2dq87iAyqhwn5o28eINH13RxQ3swtMPBbzjofUd+j5erSA3jq
Kt3P5bFokbAeC5BlNJC0cbV7F3ov1DoG/4tTqIHAa2Hl1G8NFQhHhNW+9wiDDaKy
EWLCvN2Oe8N1fGUSx8YQ/BbdrdgSW/h8gmdOqInmRb66AtAHgmJCwbfAXLVN7a7s
YBXVSAASP8axxeGot11PZdMhTIDdW00HDJdfan36SUAfNUkhyjADFBQxRfBRlMBS
ODULMjYddA6Nd9H1g7v2HC5p5slZrUzPBhhymRPBwytA0IaP/CaW0/Sw2OABfHiG
3KyCcBc3FNjetncWnzjkWUpMFr+OL3dt7LByD4L9s4RipTV9mOufNlhm9Bveenh9
OMELY7Dwn12h2oTZdRi9qv9AWSRAC/qhaQzVdnu1tmhNpi4V2d232MAiTplOvJn8
xEZEQ9a4R9aQDPtg/K89QD3uH0LbbU/24KMoa9TewxixiWpQAAffSRRLZz9TS5ku
aevQBTDP/IpOUwHwLugprHjcnD2PPbCvKff7bLCUXGM4Pp7tBmuTuBg3AMaFSKds
vRucdZ0DgXPLCeWtzycohY1761cQyG9HETgQbxrE7l2ZCb6bdZs07OCAyJ8x7XYR
7PObsf3mR6gYtnOvNGEw
=xi0e
-----END PGP SIGNATURE-----



More information about the TYPO3-dev mailing list