<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>willnet</author_name>
  <author_url>https://blog.hatena.ne.jp/willnet/</author_url>
  <blog_title>おもしろwebサービス開発日記チラシの裏</blog_title>
  <blog_url>https://memo.willnet.in/</blog_url>
  <categories>
  </categories>
  <description>&quot;environment&quot;が指すものがRAILS_ENVとNODE_ENVの2つあり、かつwebpackerはその両方を利用するのでわかりづらい。 config/webpacker.yml RAILS_ENVに対応したキーの設定を使う config/webpack/*.js NODE_ENVに対応したキーのファイルを使う。のだけど注意点がある。 例えばNODE_ENV=stagingのときにはconfig/webpack/staging.jsを使う。その中で次のようにしていたとする。このとき、変数environmentに入るのはwebpackerがproduction用に用意した設定になる。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.willnet.in%2Fentry%2F2019%2F11%2F19%2F155041&quot; title=&quot;webpackerでデフォルト以外のenvironmentを使いたい場合 - おもしろwebサービス開発日記チラシの裏&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>2019-11-19 15:50:41</published>
  <title>webpackerでデフォルト以外のenvironmentを使いたい場合</title>
  <type>rich</type>
  <url>https://memo.willnet.in/entry/2019/11/19/155041</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
