clean workspace on use-figwheel command, otherwise require_img macro is not recompiled and might be outdated.
This commit is contained in:
parent
577f7c6954
commit
cd3b3b5755
|
@ -389,6 +389,9 @@ generateDevScripts = (devHost) ->
|
|||
projName = readConfig().name
|
||||
projNameHyph = projName.replace(camelRx, '$1-$2').toLowerCase()
|
||||
|
||||
log 'Cleaning...'
|
||||
exec 'lein clean'
|
||||
|
||||
fs.writeFileSync 'index.ios.js', "require('figwheel-bridge').start('" + projName + "','ios', '" + devHost + "');"
|
||||
log 'index.ios.js was regenerated'
|
||||
fs.writeFileSync 'index.android.js', "require('figwheel-bridge').start('" + projName + "','android', '" + devHost + "');"
|
||||
|
|
Loading…
Reference in New Issue