Fork me on GitHub
#luminus
<
2016-09-16
>
credulous09:09:37

I started a web project using scss… Is there a way to invoke sassc when the source files change? I really love live browser reloading, and running lein run every time my scss source files change is going to get old pretty fast.

credulous09:09:57

Or is the standard workflow to develop using the .css file directly, then translate into scss files?

ricardo09:09:46

There doesn’t seem to be a cprop channel, so I figured this might be a good place to ask..

ricardo09:09:14

cprop’s readme states that For #3 (load-config) optionally takes a sequence of maps (via :merge) that will be merged after the defaults and in the specified sequence

ricardo09:09:39

But I’m not seeing the sequence being respected.

ricardo09:09:18

(:java-home (load-config :merge [(source/from-system-props) 
                                 (source/from-env)]))
read config from resource: "config.edn"
read config from file: ".lein-env"
=> "/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/"
(:java-home (load-config :merge [(source/from-env) 
                                 (source/from-system-props)]))
read config from resource: "config.edn"
read config from file: ".lein-env"
=> "/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/"
(:java-home (source/from-system-props))
=> "/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre”

ricardo09:09:12

Looks like I always end with the same :java-home in the result, no matter which order I pass the property maps on. I’d expect the second test to end in “/jre”.

ricardo09:09:39

That’s just a trivial example with a property that’s in both, but wondering why I’m seeing that behavior.

ricardo10:09:06

Hmm. Re-reading, it merges environment variables again after step 3, which is where the values from :merge come from. Given that… does it make sense to add (source/from-env) to the list used on :merge?