<?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: xgqfrms</title>
    <description>The latest articles on DEV Community by xgqfrms (@xgqfrms).</description>
    <link>https://dev.to/xgqfrms</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%2F172977%2Fac9b027a-1030-4555-aec6-584b0d6edc45.jpeg</url>
      <title>DEV Community: xgqfrms</title>
      <link>https://dev.to/xgqfrms</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xgqfrms"/>
    <language>en</language>
    <item>
      <title>Answer: Remove console.logs with Webpack &amp; Uglify</title>
      <dc:creator>xgqfrms</dc:creator>
      <pubDate>Thu, 25 Feb 2021 04:27:03 +0000</pubDate>
      <link>https://dev.to/xgqfrms/answer-remove-console-logs-with-webpack-uglify-dkm</link>
      <guid>https://dev.to/xgqfrms/answer-remove-console-logs-with-webpack-uglify-dkm</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/41040266/remove-console-logs-with-webpack-uglify/66362378#66362378" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Remove console.logs with Webpack &amp;amp; Uglify
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb 25 '21&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/41040266/remove-console-logs-with-webpack-uglify/66362378#66362378" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          3
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;h1&gt;webpack 4.x remove &lt;code&gt;console.log&lt;/code&gt; solutions&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;only remove the &lt;code&gt;console.log&lt;/code&gt; but leave other consoles (recommend ✅)&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;pure_funcs: ['console.log']&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre class="lang-js prettyprint-override"&gt;&lt;code&gt;const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
// webpack.config.js
module.exports = {
    // ...
    optimization: {
        minimizer: [
            new UglifyJSPlugin({
                uglifyOptions: {
                    compress: {
                        pure_funcs: [
                            'console.log',
                            // 'console.error',
                            // 'console.warn',
                            // ...
                        ],
                    },
                    //&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/41040266/remove-console-logs-with-webpack-uglify/66362378#66362378" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>react custom hooks with arguments</title>
      <dc:creator>xgqfrms</dc:creator>
      <pubDate>Thu, 27 Aug 2020 11:03:33 +0000</pubDate>
      <link>https://dev.to/xgqfrms/react-custom-hooks-with-arguments-16li</link>
      <guid>https://dev.to/xgqfrms/react-custom-hooks-with-arguments-16li</guid>
      <description>&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/2848r"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codesandbox</category>
    </item>
  </channel>
</rss>
