<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Al Mamun</title>
    <description>The latest articles on DEV Community by Al Mamun (@asifulmamun).</description>
    <link>https://dev.to/asifulmamun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F553681%2Fb36a6292-abac-4297-b275-3b929eab5c92.JPG</url>
      <title>DEV Community: Al Mamun</title>
      <link>https://dev.to/asifulmamun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asifulmamun"/>
    <language>en</language>
    <item>
      <title>Can php file bundle by webpack like html</title>
      <dc:creator>Al Mamun</dc:creator>
      <pubDate>Tue, 17 May 2022 07:53:30 +0000</pubDate>
      <link>https://dev.to/asifulmamun/can-php-file-bundle-by-webpack-like-html-l05</link>
      <guid>https://dev.to/asifulmamun/can-php-file-bundle-by-webpack-like-html-l05</guid>
      <description>&lt;p&gt;WebPack can bundle HTML files and output from the src directory to the dist directory.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;./src/index.html to ./dist/index.html&lt;/code&gt; We know this is a static HTML file, but when I use it in my PHP project, it will need to change the index.html to index.php file. Also, I need to change or customize all of the static content to PHP logic or dynamic content.&lt;/p&gt;

&lt;p&gt;My question is if I need to add a new section or edit something in my main HTML file then I will need to change on &lt;code&gt;./src/index.html&lt;/code&gt; file from the src folder, then WebPack will do bundle again and make an &lt;code&gt;./dis/index.html&lt;/code&gt; file to the dist directory. Then again need to change the same process for the PHP files and change in PHP file for dynamic content.&lt;/p&gt;

&lt;p&gt;Should I use the PHP file in the src directory and use here PHP functions, logic or something else or dynamic content? Then bundle finally for distribution or final file to dist directory as &lt;code&gt;./src/index.php file ./dist/index.php&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Have any way for use PHP finalize for render/bundle to for distribution?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webpack</category>
      <category>html</category>
      <category>javascript</category>
      <category>php</category>
    </item>
  </channel>
</rss>
