Fork me on GitHub
#duct
<
2018-02-19
>
lambder17:02:52

hello I got the following in my dev.edn :duct.server/figwheel {} which results in :

:duct.server/figwheel {:css-dirs ["resources" "dev/resources"],
                        :builds [{:id "dev",
                                  :figwheel true,
                                  :source-paths ["dev/src" "src"],
                                  :build-options {:main firds-mirror4.client,
                                                  :output-to "/Users/.../public/js/main.js",
                                                  :output-dir "/Users/.../public/js",
                                                  :asset-path "/js",
                                                  :closure-defines {goog.DEBUG true},
                                                  :verbose false,
                                                  :preloads [devtools.preload],
                                                  :optimizations :none}}]},

lambder17:02:14

Now, I'd like to add something to the :build-options

lambder17:02:49

{:builds  [ {:id "dev"

                                          :build-options
                                              {:foreign-libs ^:replace [{:file "foreign_libs/codemirror_grammar.js" :provides ["cmg"]}]}}]}

lambder17:02:09

but rather than merging it overrides the config.

lambder17:02:23

What is the correct way to merge additional build option?