Questions tagged [webpack]

Webpack is a website bundler for JavaScript-based websites.

7 questions
6
votes
1 answer

Should published npm packages target ES5 syntax?

A bit of background: I've been using Webpack with babel-loader for a while and overall the experience has been hugely positive. Yesterday, I published an npm package of my own (to a private registry), and installed it into my "main" project that…
JLRishe
  • 680
  • 5
  • 9
4
votes
1 answer

Webpack and Lazy Load for large-scale Web Application

Background I am trying to develop with Webpack and JavaScript. Webpack would bundle all source code into one single file. When application becomes large, the file would be very large and cause negative impact to the performance. Webpack Webpack…
2
votes
0 answers

Digging deeper into differentiation and benefits of micro-frontends, module federation, and 'live' application assembly architectures

Our team is exploring microfrontends as part of the suite of applications we currently offer our clients. A few questions come to mind which I'd appreciate thoughts on: I understand how a 'shell' or 'container' app can 'host' various 'remotes' which…
MoMo
  • 121
  • 4
2
votes
0 answers

Build & deploy individual apps from a monorepo

My Proposed Monorepo Architecture This layout is what I've come up with from reading through tons of articles and being convinced that Nx suits many of our needs where I work. The layout works fine for a company of this size because we need…
2
votes
1 answer

Many small files vs fewer larger files: impact on bundle size and build time

I've been a relentless proponent of small files. I prefer one function export per file, functions with everything-in-one-view, and breaking up UI components as much as sensible (which is why I love React). There are many benefits to this from a…
Faust
  • 139
  • 7
1
vote
2 answers

How to declare the need of polyfills publishing jquery plugin (and specially for webpack users)?

I've created jquery plugin that is using modern browser's (Node/Element) features. I'm going to publish plugin as npm package. My wish is not to include polyfills code into jquery plugin, bud declare the dependencies on them. Plugin created using…
1
vote
1 answer

Deployment process for deploying nodejs application to production using webpack

I'm trying to work out what the correct process for deploying a nodejs application to a production environment should me, using webpack. If this was a standard Java/Maven project I might do something like: mvn clean install -Pdeploy-production…
dwjohnston
  • 2,543
  • 6
  • 29
  • 49