Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an asset and 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?

like image 534
JavaDeveloper Avatar asked Mar 10 '17 20:03

JavaDeveloper


People also ask

What is asset bundle in flutter?

Asset bundles contain resources, such as images and strings, that can be used by an application. Access to these resources is asynchronous so that they can be transparently loaded over a network (e.g., from a NetworkAssetBundle) or from the local file system without blocking the application's user interface.


1 Answers

An 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.

like image 112
Adrianopolis Avatar answered Oct 02 '22 20:10

Adrianopolis