<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ofsilvers</author_name>
  <author_url>https://blog.hatena.ne.jp/ofsilvers/</author_url>
  <blog_title>しるてく</blog_title>
  <blog_url>https://ofsilvers.hateblo.jp/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>grunt</anon>
  </categories>
  <description>開発環境で読むapp.jsではconsole.logは大量に出したいけど、本番環境で読むapp.min.jsではデバッグ用の記述はなかったようにしたいなーと思って探したらこんなの見つけた。grunt-remove-logging grunt.initConfig removelogging: dist: dest: &quot;app.clean.js&quot; src: &quot;app.js&quot; とかしてあげて、app.clean.jsをminifyしてあげれば良さそう。 あんま検証してないけど、今のところ問題ないかんじ。ちなみにGruntfileはcoffeescriptで書くとすっきりして良い。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fofsilvers.hateblo.jp%2Fentry%2Fgrunt-remove-consolelog&quot; title=&quot;gruntでminifyする前にconsole.logを消す - しるてく&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-05 19:07:40</published>
  <title>gruntでminifyする前にconsole.logを消す</title>
  <type>rich</type>
  <url>https://ofsilvers.hateblo.jp/entry/grunt-remove-consolelog</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
