<?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>&lt;L7.2&gt; When use page fragment, js  files folder can't be load by html, 404</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118298218" />
  <subtitle>&lt;L7.2&gt; When use page fragment, js  files folder can't be load by html, 404</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118298218</id>
  <updated>2026-04-04T01:04:09Z</updated>
  <dc:date>2026-04-04T01:04:09Z</dc:date>
  <entry>
    <title>&lt;L7.2&gt; When use page fragment, js  files folder can't be load by html, 404</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118298217" />
    <author>
      <name>Shawn Lee</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118298217</id>
    <updated>2020-01-19T14:49:10Z</updated>
    <published>2020-01-19T14:49:10Z</published>
    <summary type="html">Hi, all. When I use&lt;a href="https://github.com/liferay/generator-liferay-fragments#liferay-fragments-cli"&gt; liferay-fragments-cli tool&lt;/a&gt; generate a page fragment struture, copy a little html page in structure followed by the tool instruction, and finally import it by CMD &amp;#34; &lt;strong&gt;npm run import&lt;/strong&gt;&amp;#34;, this new fragment component can be installed in Liferay 7.2 smoothly. But one thing let me crazy. I used a third party JS library in this little html page, which have a lot of js files with complex folder structure. When I visit this liferay fragment page through web browser, a lot of *.js file in JS library not found 404 error occure in web browser console(F12 key). According tool&amp;#39;s instruction, I give a real path configuration to fragment.json file, but I have no idea how to add all &lt;strong&gt;JS library folder path&lt;/strong&gt; to fragment.json file because official tool instruction not mention about that. On the other hand, the fragment index.html file I copied use just like &amp;#34;&lt;strong&gt;src=&amp;#34;libs/modules/show.min.js&amp;#34;&lt;/strong&gt;&amp;#34; discription to allocate all JS linbrary files in the html page. From console, the error show  &amp;#34;http://127.0.0.1:8080/en/web/guest/show.min.js&amp;#34; 404 not found. So I &amp;#39;m not sure how to load whole js library files in page fragment.&lt;br /&gt;Anybody can give me a tip?  thanks a lot！</summary>
    <dc:creator>Shawn Lee</dc:creator>
    <dc:date>2020-01-19T14:49:10Z</dc:date>
  </entry>
</feed>
