'Do all the scripts (prebuild, build, postbuild) run on server automatically after deploying the Node JS app on any web host with Node JS support?
The content of the package.json file of a node JS project is shown below. In this file three scripts are specified (prebuild, build, postbuild). If I deploy the node app to any web host that supports node JS, will all the three scripts run automatically on the server after deploying?
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "npm scripts example",
"scripts": {
"prebuild": "echo I run before the build script",
"build": "cross-env NODE_ENV=production webpack",
"postbuild": "echo I run after the build script"
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
