Jambo/answers-theme local development experience discussion / requests

Hello,

I’m working on a site using Jambo and the default Answers theme. One challenge I’ve run into during development is that any changes made to the site cause a full rebuild which takes ~30 seconds.

This makes the development loop pretty slow, it’s difficult to work iteratively by making small changes and refreshing to see the effects.

I had some thoughts about ways I think it should be possible to improve this experience, apologies if I’m missing background on why the current setup is the way it is. I’d be interested in any thoughts on these suggestions:

  • Would it be possible to create a separate devmode webpack config that skips steps like minification, inlining, and asset hashing?
  • A large piece of the rebuild time comes from the Jambo build (~15 seconds). Would it be possible to avoid running this step when changing assets like Javascript or SCSS that don’t impact the html directly?

Thanks for the consideration,
Ben

Hi Ben,

Would it be possible to create a separate devmode webpack config that skips steps like minification, inlining, and asset hashing?

You can accomplish this by setting the IS_DEVELOPMENT_PREVIEW environment variable to true (either manually or by exporting it in your ci/serve.sh file).

Solutions to your second point are on our roadmap, thank you for raising!

Rose