title: Mini-css-extract-plugin - how grap the hash naming on index.html
body: <p>I try currently to implement mini-css-extract-plugin.</p>
  
  <p>I fail to implement hash naming, when I use it I don't know how lead my index.html file to grap the specific name on the fly. </p>
  
  <p>If someone has any idea would be great.Thanks</p>
  
  <p>Here my webpack.config.js :</p>
  
  <pre><code>plugins: [
      new MiniCssExtractPlugin({
        // Options similar to the same options in webpackOptions.output
        // both options are optional
        filename: 'styles.[contenthash].css'
      })
    ],
  module: {
     rules: [ {
       test: /\.js|jsx$/,
       exclude: /node_modules/,
     include: path.resolve(__dirname, "src"),
       use: [
         {
     loader: "babel-loader",
     options: {
       presets: ["es2015", "stage-1", "react"]
     }
         }
       ]
     },
  
     {
     test: /\.css$/,
     use: [{
       loader: MiniCssExtractPlugin.loader,
       options: {
         publicPath: "./public"
       }
     }, {
       loader: "css-loader"
     }]
   }
  
  ]},
  </code></pre>
  
  <p>here my index.html: </p>
  
  <pre><code>&lt;link rel="stylesheet" href="styles.css"&gt;
  </code></pre>
  
  <p>how translate in my html the "[contenthash]" part of my css filename ?</p>