![]() Traditionally, when you want to add one or more libraries as dependencies in a project, you would list them at the bottom of your index.html page using separate elements, one after another. I’ll customarily include all website content in the src directory, including stylesheets, images, etc., but this simple example is for demonstrating webpack’s features. The index.html file, naturally, can contain any content. To begin, I need to add some content to both index.html and index.js. I’ll cover more on this a little later but for now I’m going to focus on editing files in the src folder (which is where the editing always takes place). Ideally, my bundle setup will empty the dist folder each time I create a bundle. ![]() ![]() The “distribution” code is the minimized and optimized output of our build process that the browser will display. The “source” code is the code that we’ll write and edit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |