<?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>How get configuration params in adapted vue-cli project</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119566131" />
  <subtitle>How get configuration params in adapted vue-cli project</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119566131</id>
  <updated>2026-04-07T07:07:05Z</updated>
  <dc:date>2026-04-07T07:07:05Z</dc:date>
  <entry>
    <title>RE: How get configuration params in adapted vue-cli project</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119566503" />
    <author>
      <name>chenhao wu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119566503</id>
    <updated>2020-07-09T08:51:41Z</updated>
    <published>2020-07-09T08:51:41Z</published>
    <summary type="html">I use a &lt;em&gt;replace-regexp loader&lt;/em&gt;  to inject the _LIFERAY_PARAMS_  through  a &lt;strong&gt;placeholder &lt;/strong&gt;. That do the trick and meet my requirements temporarily. And many thanks notifying&lt;strong&gt;&lt;/strong&gt; me that important information about  adaptation.&lt;strong&gt;&lt;/strong&gt;</summary>
    <dc:creator>chenhao wu</dc:creator>
    <dc:date>2020-07-09T08:51:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: How get configuration params in adapted vue-cli project</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119567820" />
    <author>
      <name>Iván Zaera Avellón</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119567820</id>
    <updated>2020-07-09T07:42:34Z</updated>
    <published>2020-07-09T07:42:34Z</published>
    <summary type="html">Sadly there&amp;#39;s no way to obtain configuration params in adaptations, you need to use a real Liferay JS portlet (&lt;a href="https://github.com/liferay/liferay-js-toolkit/wiki/How-to-use-generator-liferay-js"&gt;https://github.com/liferay/liferay-js-toolkit/wiki/How-to-use-generator-liferay-js&lt;/a&gt;) to do that.&lt;br /&gt;This is because we don&amp;#39;t have control over the bootstrapping of the adapted portlets so we cannot guarantee that we will be able to support that feature in the future: we are at the mercy of the adapted frameworks.&lt;br /&gt;Also, adaptation is provided as a way to migrate already existing code and/or make use of platform agnostic code. Following that reasoning, if you are going to couple your portlet with Liferay, it is better to use a real Liferay JS portlet build. Not that you cannot develop using adapted portlets, but the other option is likely to give less trouble...</summary>
    <dc:creator>Iván Zaera Avellón</dc:creator>
    <dc:date>2020-07-09T07:42:34Z</dc:date>
  </entry>
  <entry>
    <title>How get configuration params in adapted vue-cli project</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119566130" />
    <author>
      <name>chenhao wu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119566130</id>
    <updated>2020-07-09T02:34:08Z</updated>
    <published>2020-07-09T02:34:08Z</published>
    <summary type="html">We all know  the main entry point is in the index.js,  which calls  the original vue packaged entry method in the js/app.js. But how can I  get the portlet configuration params in my own codes? Is there any callback methods? &lt;br /&gt;By the way, I have tried to export a default function in main.js, and It seems not work any way.</summary>
    <dc:creator>chenhao wu</dc:creator>
    <dc:date>2020-07-09T02:34:08Z</dc:date>
  </entry>
</feed>
