I am new to JavaScript and its related framework.
What is an asset? Is it a group of JS/HTML/img files? Is it a folder? Or a library? Or a generic term used to describe all UI related files?
What is a bundle?
I am new to JavaScript and its related framework.
What is an asset? Is it a group of JS/HTML/img files? Is it a folder? Or a library? Or a generic term used to describe all UI related files?
What is a bundle?
Share Improve this question edited Feb 23, 2020 at 12:13 Kate Orlova 3,2835 gold badges14 silver badges36 bronze badges asked Mar 10, 2017 at 20:35 JavaDeveloperJavaDeveloper 5,66019 gold badges89 silver badges143 bronze badges 1- 1 "Asset" is not a Javascript specific term, an asset is just anything you need to create your project(images, text, video, audio, etc). "Bundle" could refer to many different things, do you mean module bundling? – APAD1 Commented Mar 10, 2017 at 20:41
1 Answer
Reset to default 23An asset
is typically a static file such as JS files, image files, CSS files. A bundle
is when those files are then compressed together into a single file.
For example, if you create a "bundle" you can say: Take layout.js
, product.js
, print.js
and output to my_bundle_name.js
. Usually making a single concatenated minified file called bundle.