Submodule 11.3: Building the application

Introduction

In this submodule, you will learn to build a distribution folder containing the files that can be deployed on a web server hosting your project. This distribution folder would be built from your project files using various NPM packages and scripts. We will learn to:

  • Clean out a folder using the clean NPM module.
  • Copy files from one folder to another
  • Prepare a minified and concatenated CSS file from all the CSS files used in your project
  • Prepare an uglified and concatenated JS file containing all the JS code used in your project

See more: How to Use npm as a Build Tool

Open in the terminal your leChocolat folder to run the next commands.