title: Webpack File/Image loader for images in .ejs template
body: <p>Looks I am missing a setting for loading images in webpack configuration if the image tag is within my index.ejs template.</p>
  
  <p>All my images in my html files in my project get properly renamed and load fine during my build, but the image tag in the .ejs file gets ignored.</p>
  
  <p>i.e in my .ejs if I have <code>&lt;img src="../../home.png"&gt;</code> it remains that way, but in normal html file it changes to <code>&lt;img src="12345677.png"&gt;</code></p>
  
  <p>My current loaders :</p>
  
  <pre><code>loaders: [
              //HTML Files
              {
                  test: /\.html$/,
                  loader: 'html'
              },
              //Transpile ES6 to ES5
              {
                  test: /\.js$/,
                  include: path.join(__dirname, 'src'),
                  exclude: /node_modules/,
                  loader: 'babel',
                  query: {
                      presets: [
                          ["es2015", {"module": false}]
                      ]
                  }
  
              },
              //Extract Normal CSS
              {
                  test: /\.css$/,
                  loader: ExtractTextPlugin.extract({ loader : 'css?sourceMap!autoprefixer', publicPath: "../"})
  
              },
              //Bundle Less into CSS Code
              {
                  test: /\.less$/,
                  loader: ExtractTextPlugin.extract({ loader : 'css?sourceMap!autoprefixer!less?sourceMap', publicPath: "../"})
              },
              //Images
              {
                  test: /\.(png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$/,
                  loader: 'file'
              }
          ]
  </code></pre>
  
  <p>and important plugins :</p>
  
  <pre><code>plugins.push(
              new HtmlWebpackPlugin({
                  hash: true,
                  filename: 'index.html',
                  template:  './src/index.ejs',
                  favicon: './src/favicon.ico',
                  inject : false
              }),
              // Write out CSS bundle to its own file:
              new ExtractTextPlugin({
                  filename: 'css/[contenthash].styles.css',
                  allChunks: true
              }),
          );
  </code></pre>