dummy-module chunk is not deleted
See original GitHub issuewebpack
: 4.44.1
svg-spritemap-webpack-plugin
: 3.5.7
Config like:
module.exports = {
mode: 'development',
output: {
path: '/shop-static/assets/',
hashDigestLength: 8,
filename: './js/[name].js',
chunkFilename: './js/[name].js'
},
plugins: [
new SVGSpritemapPlugin('./src/svg-icons/*.svg', {
output: {
filename: 'spritemap',
svgo: {
plugins: [{ removeTitle: true }]
}
}
})
]
};
When I added console.log
here:
...
// Fetch existing filenames from all instances of this plugin
const filenames = compilation.options.plugins.filter((plugin) => plugin instanceof SVGSpritemapPlugin).map((plugin) => plugin.filename);
compilation.chunks.forEach((chunk) => {
console.log(chunk.name, outputOptions.chunk.name)
...
I saw:
spritemap~._spritemap-dummy-module~1acb1ac1 spritemap
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Failing to clean dummy-chunk on some occasions #81 - GitHub
If I define output.filename as a string without any placeholders, dummy module's chunk uses that string as a postfix to define its filename....
Read more >Webpack chunks are not found - Stack Overflow
When I start development server, application is build successfully and I can see a list of chunks generated, but then application doesn't load ......
Read more >Models — transformers 3.0.2 documentation - Hugging Face
Dummy inputs to do a forward pass in the network. ... Tensor with dummy inputs ... resume_download – ( optional ) boolean, default...
Read more >NormalModuleReplacementPlugin - webpack
The NormalModuleReplacementPlugin allows you to replace resources that match resourceRegExp with newResource . If newResource is relative, it is resolved ...
Read more >A Beginner's Guide to Webpack - SitePoint
Learn the core concepts to help you get started with webpack, the popular static module bundler. We'll help you understand how webpack works ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@nikolay-borzov, the fix for this issue has been released in version
3.5.8
🚀 Thanks for reporting the bug and helping me debug it!I confirm dummy-module is no longer remains after the build on my project.