webpack-splitchunks Questions
2
we have got our ecommerce platform already in production and we are experiencing weird ChunkLoadError. This error happens randomly, and is not replicable. When we are trying to open failed file it ...
Fribble asked 15/3, 2020 at 21:40
2
I started with a fresh copy of the create-react-app. I then ran eject, and wanted to add code splitting. However, whenever I add
splitChunks: {
automaticNameDelimiter: '.',
chunks: 'all',
},
Th...
Plerre asked 2/3, 2022 at 23:42
2
I'm using webpack to modernize a legacy multiple-page ASP.NET Web Forms application. I've had pretty good success with it up till I tried using the SplitChunksPlugin to de-dupe my bundles using its...
Pythian asked 29/1, 2020 at 19:0
1
I have two webpack entrypoints:
index and widget.
The index entrypoint generates the necessary entry for our main webpage.
The widget entrypoint generates a stripped down version without footer and...
Ortolan asked 27/9, 2022 at 17:30
1
I've been working on using ModuleFederation and have ran into an issue where if the remote webpack configuration had optimize.splitChunks.chunk = "all" then the host application would thr...
Kenyatta asked 27/4, 2022 at 17:51
3
I have two entries: page1.js, page2.js.
I don't want to extract shared codes between two entries. I only want to extract node_modules used in page2.js.
How do I achieve this in webpack 4? Thanks....
Zephaniah asked 27/4, 2018 at 5:1
1
Solved
In webpack 4, vendors chunks had names such as vendors~main~secondary.js, which were referring to the chunks they where related to. Now, in webpack 5, vendors chunks names are like this : vendors-n...
Vadnais asked 7/4, 2021 at 13:3
2
Webpack configuration is a part of Vue CLI setup (can be checked with vue inspect). This is a relevant part of it:
entry: {
foo: [
'.../src/foo.js'
],
barWidget: [
'.../src/barWidget.js'
],
...
Injure asked 2/4, 2021 at 19:49
3
Solved
After deploying a new version of my application in Docker,
I see my console having the following error that break my application:
Uncaught SyntaxError: Unexpected token '<'
In this screen...
Gastrulation asked 28/4, 2020 at 12:0
1
I'm trying to split my React code (created with create-react-app) with the splitChunks plugin in the following way :
I have following components (JSX) structure :
services
serviceA
Component...
Cavort asked 21/1, 2019 at 13:20
0
We are using webpack splitChunks for bundling shared packages, now we did tree shake on our modules.
(Our icons, ui components, hooks and helpers are npm package).
The problem is, our packages a...
Konstanze asked 26/2, 2020 at 6:47
0
I want to split my chunks with Webpack the following way:
Whenever I import an NPM package, like
import styled from "styled-components";
I want a chunk like:
styled-components.[contenthash:5]....
Antihero asked 17/2, 2020 at 18:46
0
I'm trying to use React.lazy() to reduce the size of our main webpack bundle. The component that I'm lazy loading is successfully being split into its own js chunk that is downloaded on demand when...
Tuberose asked 16/12, 2019 at 20:24
1
I have a problem understanding the behaviour of Webpack splitChunks plugin. What I'm working on is rewriting old scripts on existing site into components and using Webpack for bundling. The bundle...
Casanova asked 30/1, 2019 at 11:33
1
© 2022 - 2024 — McMap. All rights reserved.