Questions tagged [bundle]

Bundles are a group of resources.

A bundle is a directory that has a well-defined structure and can host anything from classes to controllers and web resources. Even if bundles are very flexible, you should follow some best practices if you want to distribute them.

In ASP Net MVC, bundles are used to combine multiple javascript and CSS files into one, improving the download speed of a website.

In Android bundles are, "A mapping from String values to various Parcelable types." --http://developer.android.com/reference/android/os/Bundle.html Bundles are used to save the state of activities and/or fragments as well as passing data between classes.

5438 questions
28
votes
3 answers

bundler incorrectly trying to install "development" and "test" group gems in production

I have a small web app, which uses a bunch of gems. Some of them are only used for test and development environments. Now, when I try to start unicorn on the production server using the following command, it fails. unicorn_rails -E production -D -c…
Khaja Minhajuddin
  • 6,653
  • 7
  • 45
  • 47
27
votes
7 answers

Bundle JS and CSS into single file with Vite

I'm having a devil of a time figuring out how to build a single .js file from Vite in my Svelte project that includes all of the built javascript and CSS from my Svelte projects. By default, Vite bundles the app into one html file (this is ok), two…
ringmaster
  • 2,879
  • 3
  • 28
  • 31
27
votes
3 answers

Does the ASP.net bundler automatically minify files?

I'm using ASP.net MVC 4. Like the question states, if I put a bunch of JS files (or CSS, for that matter) into a bundle, will it automatically be minified? For example, should my bundle read: bundles.Add(new…
AlbatrossCafe
  • 1,710
  • 6
  • 26
  • 49
27
votes
4 answers

What is the difference between a Bundle and an Intent?

An Intent is a passive data structure that carries information from one Activity to another. An Intent is also capable of holding data in the form of name-value pairs (via putExtra()). But while overriding the onCreate() method we pass a Bundle as…
ikartik90
  • 2,695
  • 6
  • 26
  • 38
27
votes
8 answers

Error installing debugger: Failed to build gem native extension with ruby-1.9.3-p362

While trying run bundle for a new project, I'm encountering the following error: Installing debugger (1.2.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe…
erroric
  • 991
  • 1
  • 11
  • 22
26
votes
7 answers

Is there any limit of bundle in Android?

I want to know whether android bundle's data size has upper limit. I try to post data by bundle which size >80k,and throw android fatal exception.The data is Serializable.
user1104578
  • 281
  • 1
  • 3
  • 7
25
votes
3 answers

iOS: How to use images in custom bundle in Interface Builder?

I have a bundle where i put images in it. The contents are: MyBundle.bundle/images/picture1.png MyBundle.bundle/images/picture2.png I dragged MyBundle.bundle into my project. Now I can see these images in Interface Builder and can even use them.…
Van Du Tran
  • 6,736
  • 11
  • 45
  • 55
25
votes
1 answer

File pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'APK' by 'Android' plugin

Suddenly android studio showed this message. What is that I must do? It is showing: File pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'APK' by 'Android' plugin You can confirm or revert reassigning pattern '*.apk' and gives…
sifr_dot_in
  • 3,153
  • 2
  • 33
  • 42
25
votes
1 answer

Fragments onCreateView() bundle. Where does it come from?

I'm starting an Activity through the usual means: Intent startIntent = new Intent(this, DualPaneActivity.class); startIntent.putExtras(((SearchPageFragment) currentFragment).getPageState()); startActivity(startIntent); When this activity loads, it…
Graeme
  • 25,714
  • 24
  • 124
  • 186
25
votes
3 answers

How to use tree shaking in Webpack?

I just updated to webpack 2.1.0-beta.15 with an Angular 2 (version rc.2) app (with Typescript), but I was wondering how to use the tree shaking feature. I read it should work "out of the box", but I'm still having a bundle of 1.7Mb for a very simple…
r_31415
  • 8,752
  • 17
  • 74
  • 121
25
votes
1 answer

Asset Catalog: Access images with same name in different folders

There is an images.xcassets in my project, it contains an icons folder and two subfolders (firstFolder, secondFolder) with images. Both of my subfolders have the same number of icons and the same icons names (for different themes of my app). So…
Alexey Pelekh
  • 1,143
  • 13
  • 20
25
votes
7 answers

Bundled css link gets a 404 error

I am trying to get bundling to work in ASP.NET MVC 4. I am getting a 404 error from the link generated for the bundled CSS. I have done the following: Installed the "Microsoft ASP.NET Web Optimization Framework" package via NuGet…
rogersillito
  • 869
  • 1
  • 10
  • 27
25
votes
1 answer

Laravel 4 Artisan error when trying to install a bundle

I am simply trying to install a laravel bundle via the Artisan CLI using the latest Laravel 4 beta from github. But when I try something like: php artisan bundle:install bob I'm confronted with [InvalidArgumentException] There are no commands…
tymondesigns
  • 451
  • 1
  • 4
  • 9
25
votes
1 answer

Sending Bundle with Fragment Transaction

Here is my code that is not working: // Sending bundle this way: String topUser = String.valueOf(scores.get(arg2)); Bundle data = new Bundle(); data.putString("userprofile", topUser); FragmentTransaction t =…
TheLettuceMaster
  • 15,594
  • 48
  • 153
  • 259
25
votes
5 answers

How to use ASP.Net MVC 4 to Bundle LESS files in Release mode?

I'm trying to have LESS files in my web project, and have the MVC 4 bundling functionality call into the dotLess library to turn the LESS into CSS, then minify the result and give it to the browser. I found an example on the ASP.NET site (under the…
Graham Clark
  • 12,886
  • 8
  • 50
  • 82