legacy-knowledge-base
公開されました Jul. 2, 2025

React/Angular npmベースのポートレットの再展開時に、JSとCSSの修正が適用されます。

written-by

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ReactAngular ベースの npm-portlets を開発していると、ブラウザのキャッシュをクリアしない限り、再デプロイ時に JS や CSS の修正が適用されないことに気づきます。 これはDEV環境でも同様で、portal-ext.propertiesファイルで include-and-override=portal-developer.properties が適用されています。

環境

  • Liferay DXP 7.0
  • Liferay DXP 7.1

解像度

  • 以前のテストから環境がクリーンであることを確認し、以下の方法で DEV モードで実行します:
    - サーバーを停止する
    - Liferay/osgi/state, Liferay/work, Tomcat/work, Tomcat/temp ディレクトリとブラウザのキャッシュを削除する
    - portal-ext.properties ファイルに include-and-override=portal-developer.propertiesを追加する
    -サーバーを再稼働する
  • clean タスクでポートレットを再構築します: - コマンドラインから ./gradlew clean build または gradle clean build - Liferay Developer Studio 内 : build clean 前 build build または build deploy

    > > >

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base