DEV Community

Discussion on: Building a personal blog with Craft CMS, React and Element API / Part 1 - Setting up

Collapse
 
nominom profile image
Nominom

Hey, since the actual javascript bundle doesn't need npm to run once it's built, I recommend using npm to build it on your local machine, and syncing the /web/res folder after every build.

An easy way to do this if you have ftp access, is to set up automatic folder sync with WinSCP. This feature is probably present in other ftp clients as well.

Many hosting platforms won't allow installing any extra programs so this seems like the best way to handle it.

I hope this helped!

Collapse
 
morrisonleary profile image
Morrisonleary

Awesome, thank you. I will give that a shot!