Fork me on GitHub

not sure if this is right place to post about this, but i created a new luminus project using lein new luminus <project-name> +re-frame and then i added an externs.js file to the resources directory. the app works fine while developing, but after i build it using lein uberjar, i discovered that the generated app.js doesn’t have any of my code in it! after removing extern.js, the build contains a complete app.js.


@feihong.hsu mine works fine with extern.js. what's your contents of it? have you specified it in your uberjar conf?


@kaosko my resources/externs.js looks like this:

var emojione = {
  shortnames = [],
  shortnameToUnicode = function() {}  
even if i comment everything in the file out, the build will not work. uberjar conf looks like this: `


{:uberjar {:omit-source true
             :prep-tasks ["compile" ["cljsbuild" "once" "min"]]
               {:source-paths ["src/cljc" "src/cljs" "env/prod/cljs"]
                {;:main quickstart.core
                 :output-dir "target/cljsbuild/public/js"
                 :output-to "target/cljsbuild/public/js/app.js"
                 :source-map "target/cljsbuild/public/js/"
                 :optimizations :advanced
                 :pretty-print false
                 {:externs-validation :off :non-standard-jsdoc :off}
                 :externs ["react/externs/react.js" "resources/externs.js"]}}}}


very close to mine, sounds weird if the externs.js is the only difference