-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
At its core, a modern React application will need a few base features to function. We'll need npm to help us manage the application's dependencies. As you have seen from our previous exercises, npm is a code repository that allows us to download dependencies and use them in our application. We'll also need a tool for doing what's called bundling. A bundling system is a service that aggregates all our script files and assets, such as .js and .css files, and shrinks them into a much smaller set of files. This process is known as minification and it removes whitespace and other unneeded content from our scripts so that the files that get downloaded are as small as possible.In order to get all these features in one system, we can use Vitejs. Vitejs gives us a complete build system that includes the bundling system, compatibility with npm, and a built-in web server for development purposes. Let's use this tool to create...