Chapter 7. Build Like a Pro
Some years ago, you could create a website with PHP, upload your source files through FTP to a server, and then go online. During those days, JavaScript was a tight piece of the whole system, used for UI tasks such as validating forms or small chunks of functionality.
Today, web is more JavaScript intensive, we are building web applications instead websites, this means that JavaScript is no more a trivial piece of applications, it is now a core piece. For this reason, it is important to pack our JavaScript application before being deployed for production.
You will learn the following in this chapter:
- Building a workflow to automatically process your source files
- Minifying the application script size
- Minifying the number of requests to the server when the application is loaded
- Minifying the images
- Optimizing the CSS files
- Wiring up everything in an HTML file
- Setting up a development environment to automatically reload the application
At the time of writing this...