<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: isaack okello brian</title>
    <description>The latest articles on DEV Community by isaack okello brian (@kulgeek).</description>
    <link>https://dev.to/kulgeek</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F344661%2Fe044d3ea-c3f4-4339-84f0-20f0fff500ad.png</url>
      <title>DEV Community: isaack okello brian</title>
      <link>https://dev.to/kulgeek</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kulgeek"/>
    <language>en</language>
    <item>
      <title>Need help with NEXT.CONFIG.JS [see attached image]</title>
      <dc:creator>isaack okello brian</dc:creator>
      <pubDate>Thu, 01 Oct 2020 16:40:50 +0000</pubDate>
      <link>https://dev.to/kulgeek/need-help-with-next-config-js-see-attached-image-51he</link>
      <guid>https://dev.to/kulgeek/need-help-with-next-config-js-see-attached-image-51he</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xdpsTApY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/uggj42is0rpup9gututc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xdpsTApY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/uggj42is0rpup9gututc.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can some one help me with this piece of code, I just want to add some webpack configurations but i'm not a pro at all.&lt;/p&gt;

&lt;p&gt;I added context in comments. Also i added the github link in the comments sections&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;br&gt;
Your resident noob&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Need help with next.config.js</title>
      <dc:creator>isaack okello brian</dc:creator>
      <pubDate>Thu, 01 Oct 2020 00:39:21 +0000</pubDate>
      <link>https://dev.to/kulgeek/need-help-with-next-config-js-n09</link>
      <guid>https://dev.to/kulgeek/need-help-with-next-config-js-n09</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XQ_j6d9s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/e4wvjmobceujdc9y0f82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XQ_j6d9s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/e4wvjmobceujdc9y0f82.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How can i write this without having it throw an error?&lt;/p&gt;

&lt;p&gt;const withSass = require("@zeit/next-sass");&lt;br&gt;
const withLess = require("@zeit/next-less");&lt;br&gt;
const withCSS = require("@zeit/next-css");&lt;br&gt;
const path = require("path");&lt;/p&gt;

&lt;p&gt;const isProd = process.env.NODE_ENV === "production";&lt;/p&gt;

&lt;p&gt;// fix: prevents error when .less files are required by node&lt;br&gt;
if (typeof require !== "undefined") {&lt;br&gt;
    require.extensions[".less"] = (file) =&amp;gt; {};&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;module.exports = webpack: (config) =&amp;gt; {&lt;br&gt;
    config.resolve.alias['components'] = path.join(&lt;strong&gt;dirname,'components')&lt;br&gt;
    config.resolve.alias['public'] = path.join(&lt;/strong&gt;dirname,'public')&lt;br&gt;
    return config;&lt;br&gt;
},withCSS({&lt;br&gt;
    cssModules: true,&lt;br&gt;
    cssLoaderOptions: {&lt;br&gt;
        importLoaders: 1,&lt;br&gt;
        localIdentName: "[local]___[hash:base64:5]",&lt;br&gt;
    },&lt;br&gt;
    ...withLess(&lt;br&gt;
        withSass({&lt;br&gt;
            lessLoaderOptions: {&lt;br&gt;
                javascriptEnabled: true,&lt;br&gt;
            },&lt;br&gt;
        })&lt;br&gt;
    ),&lt;br&gt;
});&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
