Questions tagged [dllplugin]
23 questions
5
votes
1 answer
Webpack DllReferencePlugin is not working
I've got a problem with the DllReferencePlugin on one of my projects (I'm using Webpack 1.13.2). In particular, I have 3 pairs of manifests and bundle files generated by DllPlugin and in my plugins section for the main bundle I have 3…

Voice
- 1,547
- 16
- 31
5
votes
0 answers
how to use webpack dll plugin in server-side rendering
I am trying to use webpack's dllPlugin to get my chunk small, and I made it work well in client-side but something wrong in server-side rendering.
I used this as an example, and make it simpler, here is my demo code:
webpack.config.dll.js
//…

simonchan
- 51
- 4
4
votes
1 answer
How to inject a webpack DLL into an existing HTML?
Firstly, using webpack.DllPlugin to generate vendor.dll.js.
Secondly, using html-webpack-include-assets-plugin to insert vendor.dll.js into html, which generated by HtmlWebpackPlugin. Like this:
new HtmlWebpackPlugin(),
new…

summer
- 41
- 2
3
votes
1 answer
selecting webpack dll bundle via scope mode
In the webpack examples, in particular
https://github.com/webpack/webpack/tree/master/examples/dll
https://github.com/webpack/webpack/tree/master/examples/dll-user
We can create a bundle that depends on already pre-bundled libraries.
The examples…

jmlopez
- 4,853
- 4
- 40
- 74
2
votes
0 answers
Does the DLL Plugin do anything when using Webpack@5.x?
The docs still mention the DLL Plugin, but in the many months since Webpack 5 has been released I haven't seen anyone who has a working DLL Plugin configuration whenever I look.
Is it no longer compatible? Just not beneficial anymore for…

Slbox
- 10,957
- 15
- 54
- 106
2
votes
0 answers
Webpack dll reference plugin giving run time error
I am using webpack DllReference plugin to refer my node_modules and polyfills from my webpack.config so that I don't have to compile them everytime I build my project. The plugin is compiling correctly and creating js and Json files as it should but…

Aayushi Jain
- 2,861
- 2
- 29
- 36
2
votes
0 answers
How external library require dependencies those in dll?
I built a library.I hope to use it with a sript tag as a external library just like this:
My library requires react,I expect the project which use mylibrary will provide react in the…

Laolizi
- 256
- 1
- 2
- 7
2
votes
2 answers
Is it safe to use webpack DllPlugin in production?
There are a lot of articles which point to using DllPlugin for reducing build times. Can this be used in production, since webpack has an open issue with vendor chunk content hash not being consistent?
I was planning to use DllPlugin to overcome…

guru107
- 1,053
- 1
- 11
- 28
1
vote
0 answers
Webpack slow compilation time with images
I have a project where images are a key aspect. My webpack config is responsible for optimizing, resizing and pushing these images into dist/. The issue is that this processing takes a long time so a simple addition to any other asset (e.g. html, js…

Zakalwe
- 1,444
- 3
- 14
- 25
1
vote
0 answers
Use DllPlugin and DllReferencePlugin Wrong when vue/cli3.0
I wanted to pull out the dependency packages, but I had a problem.
with vue/cli3.0
online link is https://github.com/Sayid1/dll-test
main code
vue.config.js
var bundleConfig = require('./bundle-config.json')
module.exports = {
configureWebpack:…

user10926618
- 13
- 3
1
vote
0 answers
Is there a way to expose module globally from Webpack DllPlugin vendor bundle?
Using Webpack 4, I'm creating a bundle and a vendors bundle. Vendor bundle contains jQuery and the code bundle references jquery using 'import * from jquery'. This works perfectly.
However, I now need to use a 3rd party (already minified)…

CahPhoenix
- 11
- 2
1
vote
0 answers
Webpack DllPlugin - unexpected behaviour
I am using the webpack dllplugin for my dev configurations in my react project. I found out that two of my files are not getting updated on changes. I found out that this was caused because they are added to the dll manifest. Below is my dll webpack…

Ragul Parani
- 621
- 7
- 22
1
vote
0 answers
Share code between projects with webpack and typescript
I've the following structure:
Project1
app.ts
tsconfig.json
webpack.config.js
ProjectShared
shared.ts
tsconfig.json
webpack.config.js
ProjectShared generates a DllPlugin with "./shared.ts" and for example "jquery" and Project1…

Wolfspirit
- 728
- 7
- 9
1
vote
2 answers
Angular 5 Webpack 4 Rxjs 5 DllPlugin - Duplicated RxJs everywhere
I'm using :
"webpack": "4.12.0",
"rxjs": "5.5.9",
"@angular" : "5.2.11"
and bundling libs with DDL Plugin.
{
entry:
{"rxjs_5_5_9": [
"rxjs
],
"angular_5_2_11": [
"@angular/common",
"@angular/compiler",
…

M'λ'
- 651
- 9
- 21
1
vote
1 answer
Webpack vendor libs not splitted into separate bundle
I am trying to separate my vendor and app packages with the autodll-webpack-plugin (v0.4.2). this package is a top level plugin over the DllPlugin of webpack and the add-asset-html-webpack-plugin for auto-ordering the imports in the index.html.…

Mr.wiseguy
- 4,092
- 10
- 35
- 67