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
Is there any official work around to override 7.4's portlet js files?
Hello,
We are seeking for some official work around to override LF7.4's portlet javascript files, especially those written in ES6 with react. What we are expecting is somthing like Overriding Liferay DXP's Default YUI and AUI Modules in the old versions.
Indeed it is possible to apply jspackage.replaceJSModule() on the destinate portlet's npm modules with some tricky overriding modules created by liferay-npm-bundler, through NpmRegistry service, but this approach is far from perfect.
Is there any hint for this topic? Thank you very much.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™