Question: how npm run build works?
Answer: js project (module), to install it as a dependency for your project. npm run build is an alias for npm build , and it does nothing unless you specify what "build" does in your package. json file. It lets you perform any necessary building/prep tasks for your project, prior to it being used in another project.