---
title: "Discussion on \"Babel Plugin To Remove Console Logs In Production\" | Hashnode"
description: "Discussion on \"Babel Plugin To Remove Console Logs In Production\". I have faced the problem of having to remove javascript console logs manually in production. I want to have those logs during development, but not in production. There are two ways to achieve this., a messy way would be to comment out the console log..."
url: "https://hashnode.com/posts/babel-plugin-to-remove-console-logs-in-production/5f3d85c84539de351ee93356"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Babel Plugin To Remove Console Logs In Production](https://blog.bhanuteja.dev/babel-plugin-to-remove-console-logs-in-production?utm_source=hashnode&utm_medium=feed)

I have faced the problem of having to remove javascript console logs manually in production. I want to have those logs during development, but not in production. There are two ways to achieve this., a messy way would be to comment out the console log...

Aug 19, 2020 · 3 min read · blog.bhanuteja.dev  
Updated Nov 1, 2022  
Read the article

-   [#babel](https://hashnode.com/tag/babel)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webpack](https://hashnode.com/tag/webpack)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Bhanu Teja Pachipulusu](https://hashnode.com/@pbteja1998)

@pbteja1998 · India

  
[View profile](https://hashnode.com/@pbteja1998)

Full-Stack Developer & Entrepreneur

Full-Stack Developer, Entrepreneur and Co-Founder of Coderplex. Building https://coderplex.in Checkout my portfolio at https://bhanuteja.dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
