commonschunkplugin Questions

4

I need help migrating the following code from webpack 3 to 4. new webpack.optimize.CommonsChunkPlugin({ minChunks: module => module.context && module.context.indexOf("node_modules") !=...
Scratchboard asked 27/2, 2018 at 20:47

2

We have a traditional server rendered application (non SPA) where each page is augmented with vuejs Our existing webpack 3 configuration is webpack.config.js var webpack = require('webpack') var...
Rorke asked 16/9, 2018 at 4:29

1

I have an application built with webpack that uses code splitting. I now want to aggregate all common modules that match specific criteria (in this case node_modules) across all entry chunks and al...
Danielson asked 7/12, 2017 at 13:15

0

I have an electron app that I'm building with Webpack 2. I have a custom module (mymodule) that I want to be a separate bundle referenced by the other bundles. The problem is that when I use the Co...
Epact asked 18/8, 2017 at 15:2

2

Solved

I'm using WebPack CommonsChunkPlugin to extract duplicate code and reduce JavaScript code size. I have two html pages and two entries for them. Also i've added ReactJs vendor entry. So far, in webp...
Guan asked 1/8, 2017 at 21:20

1

Solved

I have code splitting config similar to official docs and everything works perfect - all my node modules are in "vendor" chunk (including "babel-polyfill"). But now I need to move babel-polyfill an...
Domenicadomenico asked 27/6, 2017 at 15:42

1

Solved

As we are putting this output on a load balancer (not using sticky), we need to place the output of these files without chunks (neither hashes). These are the main two files for webpack configurat...

2

Solved

Short version When I run my application in IE11, I get an error saying Promise is undefined from within the manifest.js file. How do I add babel-polyfill or similar such that it runs before the ...
Appeasement asked 24/5, 2017 at 14:14

3

This is my webpack.config.js file: const webpack = require('webpack'); const path = require('path'); module.exports = { cache: true, devtool: 'source-map', entry: { app : [ './src/index.js' ...
Invalidism asked 25/6, 2016 at 8:25

1

Solved

I'm trying to wrap my head around the configuration options for webpack's CommonsChunkPlugin. These options include a boolean children property. Could you explain what happens when this is set to t...
Fairchild asked 2/3, 2017 at 15:51

0

I am working on a project which is consisting of the following 'entities': A few pages for a static website An app An admin dashboard In my initial webpack.config a setup I was handling each of...
Sick asked 3/11, 2016 at 16:6

1

Solved

I get the general gist that the CommonsChunkPlugin looks at all the entry points, checks to see if there are common packages/dependencies between them and separates them into their own bundle. So,...
Rhomboid asked 17/9, 2016 at 14:53

2

Solved

I just realized that if you load modules dynamically using require.ensure(), webpack will not analyze and chunk dependencies together. This makes sense in some way that one could argue, that webpac...
Theiss asked 1/9, 2016 at 12:59

0

I'm following Maxime Fabre's tutorial on Webpack and am trying to get a really simple webpack bundle with 1 entry point and 2 chunks to work. Since both chunks require jquery and mustache, I'm usin...
Exudation asked 11/8, 2016 at 20:11

1

Solved

I'd like to split my vendor code into two chunks, one that contains all angular libraries, and another that contains everything else. My angular app has a single entry point and is setup something...
Kalin asked 22/7, 2016 at 20:15

1

Solved

I have a app in which i can add modules as node_modules. Now, these modules and app uses a library XYZ as node module. Also, these modules have other node modules which has their own library XYZ as...
1

© 2022 - 2024 — McMap. All rights reserved.