Has anyone thought about how to integrate sass into farcry?
Just thought I’s put it out there.
Cheers
Phil
Has anyone thought about how to integrate sass into farcry?
Just thought I’s put it out there.
Cheers
Phil
I have looked into it, and even produced a very hacky proof of concept.
Unfortunately, the ideal way to do it is probably to hook into the CSS and
JS minification in FarCry which isn’t currently extendible. That whole area
of FarCry is due for an overhaul, but we don’t have specific plans.
In the meantime you could do your own compilation in
_onServerSpecificVarsAfterInit.cfm.
Blair
Did you use a libSass wrapper? I’ve had a look around hoping there might be a java library but can only find a Maven plugin.
Phil
We rationalised not adding SASS/SCSS/LESS etc support to FarCry Core in a few ways:
For these reasons, it’s much better to externalise that build process and have it independent of the backend that you are writing your app with.
Most of our projects use Grunt and NodeJS plugins for handling this stuff, but you could choose whatever works best for you.
Hi Justin,
Thanks for your well thought out and extensive response. Yes it’s good to draw a line in the sand and I’ve taken your points on board. I can see parallels with the cfml community with regard to front end tags.
I’ll go the grunt way and see how I go. I’m really just gearing up for the release of bootstrap 4 which has decided to go the sass way forward. Sass looks like the sensible option and it was only a matter of time that I was forced to take the plunge. (I’m sick of find and replace on large CSS files ).