Closed iwarner closed 8 years ago
@iwarner would be great if you could take a look at it now -- turns out my "fix" for the tests wasn't necessary in reality, I just had to ensure the tests were touching files for sprockets to pick them up.
So after (non-sprockets) file changes you should see quick renders of sprockets stuff, but if the app reloads (like if you change config.rb) it's cache does get reset so it'll be a full boot time again.
@stevenosloan I am all over this no problem :+1:
Ok initial results are amazing : changed a SCSS and this time only CSS get updated
== Instrument (sprockets.asset_lookup): 3303.404ms
{:asset=>#
JS - Super quick
= Instrument (sprockets.asset_lookup): 277.853ms
{:asset=>#
I can now put the livereload back on :)
Sweet! I should have been a bit more diligent testing before killing that cache.
Let me know if you run into anything else, thanks for being so helpful.
@stevenosloan no, thank you - really speedy fix, reason i like middleman is that you guys rock.
Trying to give something back by exposing all my partials etc : http://codeblender.net/ - one day someone might find it useful but still work in progress, but I use for Prototyping more complex projects.
Guys
I know this has been stated a few times, but as my project grows I am running into a constant battle of the reload being extremely poor
I am still using sprockets but recently added the sassc not much happened I think
I do use a few sprockets appends sprockets.append_path File.join( root, "bower_components" ) sprockets.append_path File.join( root, "source/atom" ) sprockets.append_path File.join( root, "source/molecule" ) sprockets.append_path File.join( root, "source/organism" ) sprockets.append_path File.join( root, "source/template" ) sprockets.append_path File.join( root, "source/page" )
Which could be an issue?
Anyway if I can ask if you can benchmark my project : https://github.com/iwarner/CodeBlender-Middleman
It could help with your development also?
This is the Gist of my middlemen preview server verbose https://gist.github.com/iwarner/2783130afe18d2a876f6
Main pause is at line 1170 Just before it starts the server - [2016-03-24 12:14:26] INFO WEBrick 1.3.1
Gems installed middleman (4.1.4) middleman-cli (4.1.4) middleman-core (4.1.4) middleman-favicon-maker (4.0.3) middleman-livereload (3.4.6) middleman-minify-html (3.4.1) middleman-syntax (2.1.0)
I always use : "bundle exec middleman server" to initiate
Many thanks