<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay NPM Bundler: How do I build a production build?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120458771" />
  <subtitle>Liferay NPM Bundler: How do I build a production build?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120458771</id>
  <updated>2026-04-26T10:33:59Z</updated>
  <dc:date>2026-04-26T10:33:59Z</dc:date>
  <entry>
    <title>RE: Liferay NPM Bundler: How do I build a production build?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120508658" />
    <author>
      <name>Erik Strauß</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120508658</id>
    <updated>2020-12-20T09:55:00Z</updated>
    <published>2020-12-20T09:55:00Z</published>
    <summary type="html">&lt;p&gt;Thanks for your help. I set the NODE_ENV attribute by hand and now it
  worked :-) &lt;/p&gt;</summary>
    <dc:creator>Erik Strauß</dc:creator>
    <dc:date>2020-12-20T09:55:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay NPM Bundler: How do I build a production build?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120501134" />
    <author>
      <name>Diego Nascimento</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120501134</id>
    <updated>2020-12-20T09:54:57Z</updated>
    <published>2020-12-10T17:33:09Z</published>
    <summary type="html">&lt;p&gt;Hey Erik, How you are building your js-module? How you are using your
  build properties? We have a custom property for &lt;a
  href="https://stackoverflow.com/questions/16978256/what-is-node-env-and-how-to-use-it-in-express"&gt;NODE_ENV&lt;/a&gt; which
  the &lt;a
    href="https://github.com/liferay/liferay-portal/blob/f674c566d1d9ac9a2e33ac2e38b66af3b294e572/build.properties#L511"&gt;default
    value is production&lt;/a&gt;.&lt;br /&gt;
  &lt;br /&gt; &lt;/p&gt;</summary>
    <dc:creator>Diego Nascimento</dc:creator>
    <dc:date>2020-12-10T17:33:09Z</dc:date>
  </entry>
  <entry>
    <title>Liferay NPM Bundler: How do I build a production build?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120458770" />
    <author>
      <name>Erik Strauß</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120458770</id>
    <updated>2020-11-18T18:41:33Z</updated>
    <published>2020-11-18T06:40:38Z</published>
    <summary type="html">&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I have a standard MVC portlet with React. For building I use gradle
  and the liferay npm bundler (v2.20.0). But every time a developer
  build is created for me. How can I tell the bundler to create a
  production build?&lt;/p&gt;</summary>
    <dc:creator>Erik Strauß</dc:creator>
    <dc:date>2020-11-18T06:40:38Z</dc:date>
  </entry>
</feed>
