Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay NPM Bundler: How do I build a production build?
تم تعديل Jamie Sammons منذ 5 سنوات من الدقائق.
New Member
المشاركات: 10
تاريخ الإنضمام: 6/5/18
المشاركات الحديثة
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?
تم تعديل Erik Strauß منذ 5 سنوات من الدقائق.
New Member
أرسل: 1
تاريخ الإنضمام: 14/9/20
المشاركات الحديثة
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.
تم تعديل Erik Strauß منذ 5 سنوات من الدقائق.
New Member
المشاركات: 10
تاريخ الإنضمام: 6/5/18
المشاركات الحديثة
Thanks for your help. I set the NODE_ENV attribute by hand and now it worked :-)
Community
Company
Feedback