- JavaScript by Example
- Dani Akash S
- 89字
- 2021-07-02 18:39:09
Shipping the code
Once development is done, for shipping the code if you use version control, add the node_modules and dist folder to the ignore list. Otherwise, send your code without the node_modules or dist folder. Other developers can simply run npm install to install dependencies and read the scripts inside the package.json file to build the project when needed.
Our npm run build command will remove the dist folder present inside the project folder and create a new dist folder with the latest build of JS code.