<p dir="auto">I noticed <code class="notranslate">next build</code> started to take quite some time, so long in fact that it started to fail with an exit code 137 when I deploy to <code class="notranslate">now</code>. It turns out <code class="notranslate">__tests__</code> directories within <code class="notranslate">pages/</code> caused it. Once I deleted them, which includes Jest snapshot files, <code class="notranslate">next build</code> took about a minute and worked fine when deploying to <code class="notranslate">now</code>.</p>
<p dir="auto">My apologies if this has been discussed already, but I couldn't find anything on Github or in Slack. Is this a known issue? Do others have their test files within <code class="notranslate">pages/</code>?</p>
<p dir="auto">I'm trying to configure</p>
<blockquote>
<p dir="auto"><a href="https://github.com/VanquisherMe/with-nextjs-antd-app/blob/master/next.config.js#L28">https://github.com/VanquisherMe/with-nextjs-antd-app/blob/master/next.config.js#L28</a></p>
</blockquote>
<p dir="auto">I need to load it on demand ，‘less’ mode</p>
<blockquote>
<p dir="auto"><a href="https://github.com/VanquisherMe/with-nextjs-antd-app/blob/master/.babelrc#L9">https://github.com/VanquisherMe/with-nextjs-antd-app/blob/master/.babelrc#L9</a></p>
</blockquote>
<p dir="auto">I tried many times but I didn't get it right<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4927398/45595135-a01b8500-b9d9-11e8-9471-4feaa9bc031f.png"><img src="https://user-images.githubusercontent.com/4927398/45595135-a01b8500-b9d9-11e8-9471-4feaa9bc031f.png" alt="fa86fbf0-8c5d-4fe5-8f7a-25f7b65a9ca3" style="max-width: 100%;"></a></p>
<p dir="auto">I have ever seen</p>
<blockquote>
<p dir="auto"><a href="https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less">https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less</a></p>
</blockquote>
<p dir="auto">But this is not for the project<br>
<strong>I need an example</strong></p>