This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
For the Pro version of Web Workbench, I was wondering if the compilation to CSS includes references to @import .less files? I've been doing a custom roll-out of Twitter's Bootstrap and doing compilation with an online LESS compiler, since we've decided to serve the styling as CSS, since the LESS conversion is taking too long, but the results have not been ideal. With the Pro version of your product, would I be able to get a CSS output more closely resembling to what I have Web Workbench doing for me? Thank you. |
|
|
Yes, Web Workbench just invokes the Less compiler, which respects @import directives. I believe some of our internal users are using it with (vanilla) Twitter Bootstrap and it compiles fine. One caveat for Bootstrap is that you will currently see quite a few wigglies because some Bootstrap files do not @import all their dependencies (they expect to be @imported into something else that will @import the dependencies instead). These wigglies are just editor warnings though -- they don't affect compilation, and in fact you would usually turn off compilation for the @imported files and just compile the main file. The next nightly build will include a feature to make these wigglies go away -- see http://www.mindscapehq.com/forums/thread/264326#296051 for more info. |
|
|
I am using the latest nightly (Mindscape.WebWorkbench.Integration-20120313.10.vsix), along with the latest twitter bootstrap (2.0.2 -- released a couple days ago). I get an error when i save "bootstrap.less": Less compiler error in C:\projects\proj\Styles\bootstrap\less\bootstrap.less. Details: Name error: #grid > .core is undefined The twitter bootstrap changelog for 2.0.2 mentions that you need LESS 1.3 to work with bootstrap 2.0.2. I'm not sure what compiler web workbench is using. Could that be the cause of the error I'm getting or is it something else? Have you tried bootstrap 2.0.2 with the latest release or the latest nightlies of web workbench pro? Thanks! |
|
|
Yes, that sounds about right; I think Web Workbench is still on Less 1.2.x. (As far as I can see Less 1.3 only came out 4 days ago; we weren't expecting people to migrate so quickly!) I'll see if we can get this upgraded for you. |
|
|
Thanks, looking forward to trying out the build after you switch to LESS 1.3. Will you post a reply again here so i know to download and try it out when it's available in the nightlies? Out of curiosity, what engine is being used to compile? I looked through the vsix and see a bunch of .js files. I'm assuming all of those are the LESS compiler? What javascript engine is being used? |
|
|
Yep, we'll post here. The .js files you see might be the Less compiler or they might be the CoffeeScript compiler. We include both of those in the Web Workbench VSIX. The JavaScript engine is Google's V8 engine. If you're asking because you're thinking about hosting JavaScript yourself, though, I'd recommend Jurassic or IronJS as these are much easier to host in .NET applications. We switched to V8 for performance reasons, but the hosting story for V8 in .NET is pretty painful; only do it if you really need it! |
|
|
We have now upgraded the Less compiler to 1.3. Do an update through the Visual Studio Extension Manager and you should be good to go. |
|