We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f3ee3 commit fb45072Copy full SHA for fb45072
src/plugin.js
@@ -113,13 +113,15 @@ class AutoDLLPlugin {
113
compilation.plugin(
114
'html-webpack-plugin-before-html-generation',
115
(htmlPluginData, callback) => {
116
- const dllEntriesPaths = flatMap(memory.getStats().entrypoints, 'assets').map(filename =>
117
- getInjectPath({
118
- publicPath: settings.publicPath,
119
- pluginPath: settings.path,
120
- filename,
121
- })
122
- );
+ const dllEntriesPaths = flatMap(memory.getStats().entrypoints, 'assets')
+ .filter(filename => !filename.endsWith('.js.map'))
+ .map(filename =>
+ getInjectPath({
+ publicPath: settings.publicPath,
+ pluginPath: settings.path,
+ filename,
123
+ })
124
+ );
125
126
htmlPluginData.assets.js = concat(dllEntriesPaths, htmlPluginData.assets.js);
127
0 commit comments