title: Laravel Mix - prepend formatted comments to compiled css output
body: <p>I am using Laravel Mix to compile and minify my js and scss files for the Wordpress website.</p>
  
  <p>When I run mix with 'npm run production', the comments from scss file are removed. The file is a child theme style definition, and so Wordpress expects template header in the child theme stylesheet. When I upload the minified style.css file (without the definition) I am getting the following warning:</p>
  
  <blockquote>
    <p>ERROR: Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.</p>
  </blockquote>
  
  <p>In addition, there is no way to select page templates, when creating/editing new pages.</p>
  
  <p>Currently I am copy-pasting the template header from the scss file to the compiled css file. I would like to automate the process by prepending a not-modified theme header file to a compiled scss file.</p>
  
  <p>I have tried solving it this way:</p>
  
  <pre><code>const Dotenv = require('dotenv-webpack');
  
  mix.webpackConfig({
      plugins: [
          new Dotenv()
      ]
  }).js('assets/js/app.js', 'public/js/')
      .js('assets/js/custom.js', 'public/js/')
      .sass('assets/css/style.scss', './')
      .combine([
          'assets/css/template-header.css',
          './style.css'
      ], './style.css');
  </code></pre>
  
  <p>But <code>combine</code> method <a href="https://github.com/JeffreyWay/laravel-mix/blob/31648d1a77c212b01367008feac7f6070d60cfcf/docs/concatenation-and-minification.md" rel="nofollow noreferrer">minifies the output file by default</a>, and there is no way to override it.</p>
  
  <p>I am happy with the file minification and removing comments, except for that theme header comment, so killing minification altogether for scss processing is not really an option.</p>
  
  <p>Is there a way to combine the files to achieve the result I described within Laravel Mix?</p>