<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Cannot use next.config.js with a custom express server</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Clone custom express server example</li>
<li>Create a next.config.js and add withCSS</li>
<li>Try and import a css fire</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">CSS file imports, no errors.</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a8c4db6ff36fcca932adabfe01169cd0c13fac4d03f02b91afd8f175da461739/68747470733a2f2f692e646e696e6a6132312e6e65742f5236764e32326168622e706e67"><img src="https://camo.githubusercontent.com/a8c4db6ff36fcca932adabfe01169cd0c13fac4d03f02b91afd8f175da461739/68747470733a2f2f692e646e696e6a6132312e6e65742f5236764e32326168622e706e67" alt="screenshot" data-canonical-src="https://i.dninja21.net/R6vN22ahb.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: Windows 10</li>
<li>Version of Next.js: 7.0.2</li>
</ul>
<h2 dir="auto">Note</h2>
<p dir="auto">I have added the <code class="notranslate">conf</code> parameter in the next function in the server file.</p>
<p dir="auto"><code class="notranslate">const app = next({dev: process.env.NODE_ENV !== 'production', conf: require('./next.config')})</code></p>
<p dir="auto">When trying to import the <a href="https://fontawesome.com/" rel="nofollow">Font Awesome</a> css</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'font-awesome/css/font-awesome.css';"><pre class="notranslate"><code class="notranslate">import 'font-awesome/css/font-awesome.css';
</code></pre></div>
<p dir="auto">It fails to compile with this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./node_modules/font-awesome/css/font-awesome.css
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleParseError: Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)"><pre class="notranslate"><code class="notranslate">./node_modules/font-awesome/css/font-awesome.css
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleParseError: Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
</code></pre></div>