Reputation: 5560
I would like to use the new Bootstrap library from Twitter for an external site hosted on Force.com. I really like the idea of using LESS to compile the CSS, but I'm uncertain if I'll run into any issues since I'm unaware of how to set the stylesheet's rel=
using VisualForce or override the <head>
so that I can just set it manually.
Here's the LESS javascript compile syntax:
<link rel="stylesheet/less" href="/path/to/bootstrap.less">
<script src="/path/to/less.js"></script>
Has anyone else had success with LESS in a VisualForce page, or can you confirm that it will work without issue?
Upvotes: 1
Views: 671
Reputation: 3409
Haven't used it myself, but that should be VF-compatible. That said, I'd recommend against using the JS compiler for less except during development - there's no reason not to use the compiler to generate vanilla CSS and save your users an extra download + compile step.
Upvotes: 2