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
|
Hi Mindscape Team, I noticed "slow scss compile" has showed up in a few other places, however I wanted to be more specific about our situation. My team and I have built some large applications, with 200+ scss files (~100 lines ea). Most of these reference "config" files for shared variables. They're all also compiled into a couple nested/master-something.css files to stay organized, and so that the client doesn't have to download 200 different css files. It seems reasonable that the compile time for these nested/imported scss files might start to take some time. However we have the same setup with all of our coffee files, and a solution that has worked is to start new chains of nested files (multiple master.js files), with one chain not having any references to the other ones. Therefore the compiler doesn't need to crawl through many files. Starting a new chain/master.css-file doesn't seem to work with the SCSS compiler. If I create a new scss file with no imports, it will still take 10+ seconds to compile. I've read through a couple posts here and searched through the MSWB settings. "Experimental Fixes" hasn't seemed to taken care of the problem. We're on the latest MSWB as of today, VS2010, 3.3ghz 8gb win7. Razor and a couple smaller extensions are installed, projects are all MVC3/4 if it's relevant. I really appreciate any feedback you have on the situation. I'm really hoping there's a better solution than abandoning the nested setup that we currently have in place. |
|
|
Is it possible to send us through an example of this which we can use to try and debug this? You can email any files through to support at mindscape.co.nz rather than attaching them to the forum post.
|
|
|
Hey Jeremy, I sent those files to your address. Is there anything we can do in terms of speeding up compile time in a project with a lot of scss files? I've tried to break as many @import connections as I could without destroying our file/directory convention. I love how MSWB handles scss, but the compile time is becoming unbearable. |
|
|
Thanks for sending these through, Ill have a look into this now.
|
|
|
Hey Jeremy, Did you find a solution for the problem? I'm having the same problem as well. it takes 18-20 seconds to compile an SCSS stylesheet. Even for one with about 50 lines of code and no imports. I went through my settings and only selected to compile a few of our stylesheets, but it didn't help at all. Does Web Workbench compile all of our SCSS files when I save my main stylesheet? How do those settings work? You know, we didn't have this problem before, but I believe the other dev here updated Web Workbench to 3.3.1608.0 and now it is insanely slow for every save of an SCSS file/stylsheet. It is the same for every save, on every stylesheet; regardless of imports, file size, or lines of code. |
|
|
All dependant files are updates on save, so updating the main stylesheet would just trigger a compilation of that .scss file (which in turn would pull in its dependancies by proxy) but the other files are not independently saved. If you save a import which is used on 2 other .scss files though a save of the import would trigger a recompile of both of the files taking a dependancy on it.
|
|
|
Ok. so i just created a file and it is not dependent upon any other .scss, nor is it referenced anywhere in any other .scss file. However, it still takes about 20 seconds to save this file. Any ideas as to why and/or how we can fix it? I can't justify the cost of the Pro version if it is going to take this long just to compile our stylesheets. Thanks in advance. This is the content of that file: .tHdr, th { background-color:#efefef; font-weight: bold; } .hdrRow { background-color:rgb(255, 242, 226); border-bottom-width:2px; } main table td, #main table th {
} main table td:first-child {
} chartWrapper {
} chart_div {
} |
|
|
Do you have any other extensions installed? Is the solution connected to source control? This is definitely way too long for compilation outside of the very first compilation you undertake after installing Web Workbench when the tooling needs to be extracted. There wont be any difference in compile time between the Free version and the Pro version for this type of operation.
|
|
|
Yes, we are connected to Source Control. TFS to be exact. And yes, I've never had this problem with .scss files before. I'll check out some extensions to see if there may be some type of conflict or something. Thanks. |
|
|
We have the same issue here, did you come with a solution for that? Thanks |
|
|
No. I did manage to get it down to 7 seconds save time though. I'm not exactly sure what did it, but I went into my IDE (VS2012) and uninstalled some extensions for DevExpress that I know we weren't using. Then I deleted the references to the old version of the DevExpress dll's from Solution Explorer. Then I uninstalled Mindscape, rebooted my system, and then reinstalled Mindscape. That got me down to 7 seconds save time consistently on any SCSS file. Good luck man. Don't give up! |
|