I decided to run the
npm init command on my project folder. Within the package.json file, I had the following:
"minify": "uglifyjs ./js/* -o scripts.min.js",
"uglify": "npm run minify"
Once I ran
npm install uglify-js --save, I made sure to specify the folder I wanted to run the process in (./js/*), and the file I wanted to create with the minified code (scripts.min.js). Next, all I had to do was run
npm run uglify and my new scripts.min.js minified file was created.
npm run uglify to bundle up and minify the code.