最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is an asset and what is a bundle - Stack Overflow

programmeradmin1浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 23

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.

发布评论

评论列表(0)

  1. 暂无评论