<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24717511/78335715-b8a1bf00-75c0-11ea-94e2-8180cea6c01a.png"><img width="678" alt="1" src="https://user-images.githubusercontent.com/24717511/78335715-b8a1bf00-75c0-11ea-94e2-8180cea6c01a.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24717511/78335770-d3743380-75c0-11ea-8211-9d5ca73af37a.png"><img src="https://user-images.githubusercontent.com/24717511/78335770-d3743380-75c0-11ea-8211-9d5ca73af37a.png" alt="2" style="max-width: 100%;"></a></p>
<p dir="auto">Note:The key and value file names in the document do not need to be the same</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Please look at photo</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:  v4.42.1<br>
Node.js version: v12.14.0<br>
Operating System: Mac 10.14.6<br>
Additional tools: VSCode</p>
<h1 dir="auto">Bug report</h1>




<p dir="auto"><strong>What is the current behavior?</strong><br>
webpack.config.config.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {CleanWebpackPlugin} = require('clean-webpack-plugin');
module.exports = {
    mode: 'development',
    entry: {
        home: './home.js',
        index: './index.js'
    },
    output: {
        filename: &quot;[name].bundle.js&quot;
    },
    plugins: [
        new CleanWebpackPlugin()
    ]
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>CleanWebpackPlugin<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'clean-webpack-plugin'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
    <span class="pl-c1">mode</span>: <span class="pl-s">'development'</span><span class="pl-kos">,</span>
    <span class="pl-c1">entry</span>: <span class="pl-kos">{</span>
        <span class="pl-c1">home</span>: <span class="pl-s">'./home.js'</span><span class="pl-kos">,</span>
        <span class="pl-c1">index</span>: <span class="pl-s">'./index.js'</span>
    <span class="pl-kos">}</span><span class="pl-kos">,</span>
    <span class="pl-c1">output</span>: <span class="pl-kos">{</span>
        <span class="pl-c1">filename</span>: <span class="pl-s">"[name].bundle.js"</span>
    <span class="pl-kos">}</span><span class="pl-kos">,</span>
    <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
        <span class="pl-k">new</span> <span class="pl-v">CleanWebpackPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
    <span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I cann't get 2 bundle as I expected.if I rename 'index' to 'home2'，it works.<br>
<strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<h5 dir="auto">my directory Structure is below:</h5>
<p dir="auto">├── home.js<br>
├── index.js<br>
├── package-lock.json<br>
├── package.json<br>
├── readme.md<br>
└── webpack.config.js</p>
<h5 dir="auto">files content:</h5>
<p dir="auto">index.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log('index.js');"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'index.js'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">home.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log('home.js');"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'home.js'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">just run 'webpack' in the root directory</p>






<p dir="auto"><strong>What is the expected behavior?</strong><br>
get 2 bundle output, as below:<br>
'home.bundle.js'<br>
'index.bundle.js',<br>
but I just get below one;<br>
'main.bundle.js',</p>


<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:  4.42.0("webpack-cli": "^4.0.0-beta.2")<br>
Node.js version: v12.13.0<br>
Operating System: macOs<br>
Additional tools:</p>