Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bundling]

The tag has no usage guidance.

2
votes
1answer
86 views

New components that implement an abstract component, vs variants on a single component.

I have created some stateless functional components that represent round social media icons used for links/sharing, the code looks like this: AbstractRound import React from 'react'; import { ...
2
votes
2answers
251 views

Using SPA ( Single-page-application) in production with separate configuration file/module

Problem statement dev team Dev team wants to pre-build the SPA's (Angular App & React App) and provide single package containing JS, CSS, & HTML file. There's no server-side rendering / lazy ...
8
votes
3answers
7k views

Is it a good practice to have one bundle per view in Asp Net MVC

Since bundling and minification is all about optimization and making pages load faster, it appears to me that it would be logical to create one bundle for scripts and one bundle for styles per view ...
8
votes
1answer
1k views

Is it better practice to bundle scripts into a single bundle per page, or have several bundles?

In a web application I'm working on, there are 3 types of scripts (same applies to stylesheets): Those needed on every single page (e.g. jquery) Those needed on several pages, but not all (e.g. a ...
1
vote
1answer
457 views

How do webpack and gulp complement each other?

I've started with TypeScript 2.5 years ago with Visual Studio and ASP.Net MVC. VS Web Essentials would compile ts files on save and the WebOptimizer library would bundle them together at runtime in a ...
6
votes
1answer
1k views

Should I download scripts from a CDN or bundle everything into one script?

I am using jQuery, angular, bootstrap, along with some custom js files. Currently, I have everything bundled into one script. Since, jQuery, angular, and bootstrap are available via CDN, is it ...
0
votes
1answer
964 views

Bundling style and script files in asp MVC layout page

How to bundle style and script files using layout in asp MVC? Here is an example. Layout1 uses style and script file for header and footer functionality. Sections are declared. View1 uses Layout1 . ...
7
votes
2answers
4k views

Should I group all of my .js files into one large bundle?

One of the difficulties I'm running into with my current project is that the previous developer spaghetti'd the javascript code in lots of different files. We have modal dialogs that are reused in ...
3
votes
1answer
897 views

Can I bundle my JavaScript code with an MIT licensed code and keep my code unaffected from the MIT license?

Can I bundle my proprietary JavaScript code with MIT licensed libraries (e.g. JQuery, AngularJS) into the same file, distribute it via HTTP but disallow my users to use my own code as an MIT licensed ...