[Fix #2986] Figwheel reloads env.android.main / env.ios.main on every file change

Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
This commit is contained in:
Foo Pang 2018-01-11 14:12:23 +08:00 committed by Dmitry Novotochinov
parent 5f02e4287f
commit 1b563a59cc
No known key found for this signature in database
GPG Key ID: 267674DCC86628D9
2 changed files with 3 additions and 3 deletions

2
env/dev/run.clj vendored
View File

@ -1,4 +1,4 @@
(ns dev-run
(ns ^:figwheel-no-load dev-run
(:use [figwheel-api]))
(start)

View File

@ -32,14 +32,14 @@
:source-paths ["src" "env/dev"]
:cljsbuild {:builds
{:ios
{:source-paths ["react-native/src" "src"]
{:source-paths ["react-native/src" "src" "env/dev"]
:figwheel true
:compiler {:output-to "target/ios/app.js"
:main "env.ios.main"
:output-dir "target/ios"
:optimizations :none}}
:android
{:source-paths ["react-native/src" "src"]
{:source-paths ["react-native/src" "src" "env/dev"]
:figwheel true
:compiler {:output-to "target/android/app.js"
:main "env.android.main"