Liferay NPM Bundler: How do I build a production build?

5年前 に Jamie Sammons によって更新されました。 New Member 投稿: 10 参加年月日: 18/05/06 最新の投稿

Hello!

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?

5年前 に Erik Strauß によって更新されました。 New Member 投稿: 1 参加年月日: 20/09/14 最新の投稿

Hey Erik, How you are building your js-module? How you are using your build properties? We have a custom property for NODE_ENV which the default value is production.

 

5年前 に Erik Strauß によって更新されました。 New Member 投稿: 10 参加年月日: 18/05/06 最新の投稿

Thanks for your help. I set the NODE_ENV attribute by hand and now it worked :-)