Is there any way to run React4XP in hot reload?
I mean when I make some changes on React side I don’t need to reload whole project with gradle build.
I just need fast hot reload.
I’m, trying to run continuous build
enonic sandbox start <yourSandBoxName> --dev in one terminal (from anywhere), and
enonic project deploy && gradlew react4xp_components compileXP -t from project root in another terminal. Reply No if it asks you to start the sandbox here.
I’ve updated java to 11 and got the error:
Task ‘react4xp_components’ not found in root project ‘isnareactcms’. Some candidates are: ‘react4xpComponents’.
Unfortunately continuous build takes too much time ;( (about 5 - 10 min to update)
It is more faster to redeploy (takes 1 min) it with enonic project deploy
Heads up, this will all change in the next version of React4xp.
There will only be a single gradle task.
Building components should be quicker as we have swapped babel-loader with swc-loader.
In terms of making incremental build smoother one can use the webpack override file to turn on file-system caching. The first build after clean will be slower, but the next build should be quicker.