Using tasks with individual commands
As we mentioned before, we can perform each of the tasks that we have created individually.
For example, to optimize the image files, we can run the imagemin task only. Just open the terminal/shell and type the following command:
npm run imagemin
The output on the terminal will be the following:
8 images minified
We can do the same for each task.
Get Node.js 6.x Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.