HTML and CSS Reference
In-Depth Information
Smaller CSS file
We note that before we used the build script, our CSS file was called main.css and
was approximately 21 KB, but after using the build script, the file has been renamed
and is now almost half the original size, as shown in the following screenshot:
Smaller and fewer JS files
After executing the build script, you will notice that main.js and plugin.js have
been combined into one. Not only have they been combined together, but they have
also been minified, leading to a smaller file size of the final script file.
The index.html page from the publish folder generated via the build script in-
vokes only four JavaScript files as shown in the bottom section of the following
screenshot, compared to five JavaScript files originally placed in the folder (top sec-
Search WWH ::

Custom Search