Firebase Hosting Setup - "Set up the workflow to run a build script before every deploy? (y/n)

Viewed 5920

What exactly does this mean for Firebase Hosting Setup in CLI to "run a build script before every deploy?"

Context: I'm using Firebase to host an Ionic PWA app, and I'm curious of the pros and cons of using Firebase vs other providers. Thanks,

1 Answers

It simply means that before deploying, should a specific script be run? For example, you may need to run a command to build some sources. In React.js, you would need to build before deploying, so the command to enter would be:

npm run build
Related