Less and SASS together?
Before I embark on creating my first site in 5.7, am I going to run into problems using SASS (scss) in tandem with LESS? From what I understand, the only time that I'll encounter LESS is if I start using theme customisation, which is not really an issue for me right now. Is that the case?
It really just generates two seperate styelsheets. The relevent lines in our header.php file look like this:
<link rel="stylesheet" href="<?php echo $this->getThemePath() . '/main.css';?>"> <link href="<?=$view->getStylesheet('customisations.less')?>" rel='stylesheet' type='text/css'>
In this case our main.css file is generated via Sass (compiled by Codekit or the command line), and the customisations.less file gets processed by concrete5's compiler.
Is there any way to Compile Sass on the server or should we continue at the moment to compile Sass locally and deploy the compiled CSS.
Currently concrete5 only compiles Less on the server.
Obviously where the resource usage line is crossed depends on your site host. With high performance hosts, you could be OK. With cheap shared hosting, look forward to apache/server errors.
Hopefully Bootstrap's move to SASS will stimulate a burst of compiler development to get them more efficient.
It allows the developers to use any preprocessor there is to write their CSS. And it all works within concrete5 without any external tools. It also allows developers to use preprocessors for JS in case they need to use them (e.g. CoffeeScript).
We would love to hear some feedback on this package! Possible bug reports can be directly reported into the GitHub repository's issues.
We are also hoping to get these features integrated into the core. If you have some thoughts on this, feel free to share them at this related GitHub issue: