title: Webpack config html-webpack-plugin with PHP
body: <p>In my webpack structure i'm using html-webpack-plugin to generate my html files, etc., the problem is that I want to make something on page,
  and in this situation I want to use PHP. How can I make it work properly? I was looking on the Internet but I could not find anything.</p>
  
  <p>Here is my webpack.dev.js</p>
  
  <pre><code>const path = require('path'),
      HtmlWebpackPlugin = require('html-webpack-plugin'),
      MiniCssExtractPlugin = require('mini-css-extract-plugin');
  
  const {
      distPath,
      srcPath
  } = require('./webpack.config.paths');
  
  const {
      selectedPreprocessor
  } = require('./webpack.config.preprocessor');
  
  module.exports = {
      entry: {
          main: './' + srcPath + '/js/index.js'
      },
      output: {
          path: path.resolve(__dirname, distPath),
          filename: '[name].[chunkhash].js'
      },
      devServer: {
          open: true,
      },
      module: {
          rules: [
              {
                  test: selectedPreprocessor.fileRegexp,
                  use: [
                      {
                          loader: MiniCssExtractPlugin.loader
                      },
                      {
                          loader: 'css-loader',
                          options: {
                              modules: false,
                              sourceMap: true
                          }
                      },
                      {
                          loader: 'postcss-loader',
                          options: {
                              sourceMap: true
                          }
                      },
                      {
                          loader: selectedPreprocessor.loaderName,
                          options: {
                              sourceMap: true
                          }
                      },
                  ]
              },
              {
                  test: /app.*\.html$/,
                  loader: 'raw'
              }
          ]
      },
      plugins: [
          new MiniCssExtractPlugin({
              filename: 'scss/index.css',
          }),
          new HtmlWebpackPlugin({
              hash: false,
              //inject: "head",
              template: './' + srcPath + '/content/index.html',
              filename: 'index.html',
              myPageHeader: 'Hello World',
          }),
      ]
  };
  
  </code></pre>