<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
it is bug</p>


<p dir="auto"><strong>What is the current behavior?</strong><br>
This is my webpack.config.js :<br>
const browserConfig = {<br>
entry :<br>
APP_DIR + 'client/index.js',</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="output : {
  path : BUILD_DIR,
  filename : &quot;[name] bundle.js&quot;,
  publicPath:BUILD_DIR,
},"><pre class="notranslate"><code class="notranslate">output : {
  path : BUILD_DIR,
  filename : "[name] bundle.js",
  publicPath:BUILD_DIR,
},
</code></pre></div>
<p dir="auto">};<br>
<strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">C:\Idessign&gt;webpack<br>
Hash: 18bc2fd105d4883da519<br>
Version: webpack 4.3.0<br>
Time: 116ms<br>
Built at: 2018-3-28 12:58:19</p>
<p dir="auto">WARNING in configuration<br>
The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment.<br>
ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Idessign'</p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
compilation of files<br>
<strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong><br>
Version: webpack 4.3.0<br>
node : v8.9.3<br>
windows : 8.1 progetionnel</p>
<p dir="auto">If I have a entry <code class="notranslate">hello.js</code> like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="require('./images/test.png');"><pre class="notranslate"><code class="notranslate">require('./images/test.png');
</code></pre></div>
<p dir="auto">and I use <code class="notranslate">file-loader</code> to handle this, then I want the built image named as "hello.test.png",how can I make it?</p>
<p dir="auto">The following example can not fill my need:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  test: /\.(jpe?g|png|gif|svg)$/i,
  loaders: ['file?hash=sha512&amp;digest=hex&amp;name=[path][hash].[ext]']
}"><pre class="notranslate"><code class="notranslate">{
  test: /\.(jpe?g|png|gif|svg)$/i,
  loaders: ['file?hash=sha512&amp;digest=hex&amp;name=[path][hash].[ext]']
}
</code></pre></div>