<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Magento 2 Javascript Bundling with Magepack	</title>
	<atom:link href="https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Thu, 15 Dec 2022 10:06:27 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>
		By: Ram		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-275069</link>

		<dc:creator><![CDATA[Ram]]></dc:creator>
		<pubDate>Thu, 15 Dec 2022 10:06:27 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-275069</guid>

					<description><![CDATA[mageback bundle -m command is only working if we run on command line, but if we try to run this command via Jenkins ansible script getting below error

[Errno 2] No such file or directory

Any idea on this?]]></description>
			<content:encoded><![CDATA[<p>mageback bundle -m command is only working if we run on command line, but if we try to run this command via Jenkins ansible script getting below error</p>
<p>[Errno 2] No such file or directory</p>
<p>Any idea on this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ram		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-275068</link>

		<dc:creator><![CDATA[Ram]]></dc:creator>
		<pubDate>Thu, 15 Dec 2022 10:02:45 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-275068</guid>

					<description><![CDATA[Try this with speed network]]></description>
			<content:encoded><![CDATA[<p>Try this with speed network</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: helmi		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274912</link>

		<dc:creator><![CDATA[helmi]]></dc:creator>
		<pubDate>Fri, 12 Aug 2022 09:54:15 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274912</guid>

					<description><![CDATA[why Magepack does not bundle all JS ?
I added some js to magepack.config.js file, but magepack doesn&#039;t support these js when doing the bundling.
can you help me?]]></description>
			<content:encoded><![CDATA[<p>why Magepack does not bundle all JS ?<br />
I added some js to magepack.config.js file, but magepack doesn&#8217;t support these js when doing the bundling.<br />
can you help me?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Janko Hrasko		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274423</link>

		<dc:creator><![CDATA[Janko Hrasko]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 09:09:50 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274423</guid>

					<description><![CDATA[Collecting modules for bundle &quot;category&quot;.                                                                                                                                                                                09:06:47

 ERROR  waiting for function failed: timeout 60000ms exceeded                                                                                                                                                              09:07:48

  at new WaitTask (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:549:28)
  at DOMWorld.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:454:12)
  at Frame.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/FrameManager.js:657:28)
  at Page.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/Page.js:1141:29)
  at module.exports (/usr/lib/node_modules/magepack/lib/generate/collectModules.js:12:16)
  at Object.category (/usr/lib/node_modules/magepack/lib/generate/collector/category.js:40:39)
  at processTicksAndRejections (internal/process/task_queues.js:93:5)
  at async module.exports (/usr/lib/node_modules/magepack/lib/generate.js:24:13)


I found this :
// Since page navigation requires us to re-install the pageScript, we should track
// timeout on our end.
if (timeout) {
const timeoutError = new TimeoutError(`waiting for ${title} failed: timeout ${timeout}ms exceeded`);
this._timeoutTimer = setTimeout(() =&#062; this.terminate(timeoutError), timeout);
}
this.rerun();

Whats the problem?]]></description>
			<content:encoded><![CDATA[<p>Collecting modules for bundle &#8220;category&#8221;.                                                                                                                                                                                09:06:47</p>
<p> ERROR  waiting for function failed: timeout 60000ms exceeded                                                                                                                                                              09:07:48</p>
<p>  at new WaitTask (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:549:28)<br />
  at DOMWorld.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:454:12)<br />
  at Frame.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/FrameManager.js:657:28)<br />
  at Page.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/Page.js:1141:29)<br />
  at module.exports (/usr/lib/node_modules/magepack/lib/generate/collectModules.js:12:16)<br />
  at Object.category (/usr/lib/node_modules/magepack/lib/generate/collector/category.js:40:39)<br />
  at processTicksAndRejections (internal/process/task_queues.js:93:5)<br />
  at async module.exports (/usr/lib/node_modules/magepack/lib/generate.js:24:13)</p>
<p>I found this :<br />
// Since page navigation requires us to re-install the pageScript, we should track<br />
// timeout on our end.<br />
if (timeout) {<br />
const timeoutError = new TimeoutError(`waiting for ${title} failed: timeout ${timeout}ms exceeded`);<br />
this._timeoutTimer = setTimeout(() =&gt; this.terminate(timeoutError), timeout);<br />
}<br />
this.rerun();</p>
<p>Whats the problem?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Janko Hrasko		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274422</link>

		<dc:creator><![CDATA[Janko Hrasko]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 09:08:55 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274422</guid>

					<description><![CDATA[Or whats the problem? I found this :

 // Since page navigation requires us to re-install the pageScript, we should track
    // timeout on our end.
    if (timeout) {
      const timeoutError = new TimeoutError(`waiting for ${title} failed: timeout ${timeout}ms exceeded`);
      this._timeoutTimer = setTimeout(() =&#062; this.terminate(timeoutError), timeout);
    }
    this.rerun();]]></description>
			<content:encoded><![CDATA[<p>Or whats the problem? I found this :</p>
<p> // Since page navigation requires us to re-install the pageScript, we should track<br />
    // timeout on our end.<br />
    if (timeout) {<br />
      const timeoutError = new TimeoutError(`waiting for ${title} failed: timeout ${timeout}ms exceeded`);<br />
      this._timeoutTimer = setTimeout(() =&gt; this.terminate(timeoutError), timeout);<br />
    }<br />
    this.rerun();</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Janko Hrasko		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274421</link>

		<dc:creator><![CDATA[Janko Hrasko]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 09:01:18 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274421</guid>

					<description><![CDATA[Collecting modules for bundle &quot;category&quot;.                                                                                                                                                                                08:54:43

 ERROR  waiting for function failed: timeout 30000ms exceeded                                                                                                                                                              08:55:14

  at new WaitTask (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:549:28)
  at DOMWorld.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:454:12)
  at Frame.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/FrameManager.js:657:28)
  at Page.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/Page.js:1141:29)
  at module.exports (/usr/lib/node_modules/magepack/lib/generate/collectModules.js:12:16)
  at Object.category (/usr/lib/node_modules/magepack/lib/generate/collector/category.js:40:39)
  at processTicksAndRejections (internal/process/task_queues.js:93:5)
  at async module.exports (/usr/lib/node_modules/magepack/lib/generate.js:24:13)

Where can I set timeout?]]></description>
			<content:encoded><![CDATA[<p>Collecting modules for bundle &#8220;category&#8221;.                                                                                                                                                                                08:54:43</p>
<p> ERROR  waiting for function failed: timeout 30000ms exceeded                                                                                                                                                              08:55:14</p>
<p>  at new WaitTask (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:549:28)<br />
  at DOMWorld.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:454:12)<br />
  at Frame.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/FrameManager.js:657:28)<br />
  at Page.waitForFunction (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/Page.js:1141:29)<br />
  at module.exports (/usr/lib/node_modules/magepack/lib/generate/collectModules.js:12:16)<br />
  at Object.category (/usr/lib/node_modules/magepack/lib/generate/collector/category.js:40:39)<br />
  at processTicksAndRejections (internal/process/task_queues.js:93:5)<br />
  at async module.exports (/usr/lib/node_modules/magepack/lib/generate.js:24:13)</p>
<p>Where can I set timeout?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Haritha		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274404</link>

		<dc:creator><![CDATA[Haritha]]></dc:creator>
		<pubDate>Wed, 23 Jun 2021 06:57:37 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274404</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274131&quot;&gt;Solteq&lt;/a&gt;.

Hi Solteq,

While trying to implement in the build phase of .magento.app.yaml, it results in issue below as the static content deployment is running after the build phase. Is there fix for this?
----------------------------------------------------------------------------------------------------------------
W:  ERROR  No locales found! Make sure magepack is running after static content is deployed.
----------------------------------------------------------------------------------------------------------------]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274131">Solteq</a>.</p>
<p>Hi Solteq,</p>
<p>While trying to implement in the build phase of .magento.app.yaml, it results in issue below as the static content deployment is running after the build phase. Is there fix for this?<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
W:  ERROR  No locales found! Make sure magepack is running after static content is deployed.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PAJ		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274319</link>

		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Tue, 16 Mar 2021 08:12:42 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274319</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274318&quot;&gt;Cristian&lt;/a&gt;.

You are returning true with if self::XML_PATH_ENABLE_MAGEPACK_BUNDLING before the checkout logic can function. The checkout logic must occur before the module enabled check.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274318">Cristian</a>.</p>
<p>You are returning true with if self::XML_PATH_ENABLE_MAGEPACK_BUNDLING before the checkout logic can function. The checkout logic must occur before the module enabled check.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Cristian		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274318</link>

		<dc:creator><![CDATA[Cristian]]></dc:creator>
		<pubDate>Mon, 15 Mar 2021 20:03:08 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274318</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274245&quot;&gt;PAJ&lt;/a&gt;.

I need to disable checkout and put my isEnabled like this:
public function isEnabled()
{
return $this-&#062;scopeConfig-&#062;isSetFlag(
self::XML_PATH_ENABLE_MAGEPACK_BUNDLING,
ScopeInterface::SCOPE_STORE
);
if ($this-&#062;request-&#062;getFullActionName() == &#039;checkout_index_index){

        // disable for checkout
        return false;
    }
}
But, the checkout continues to be optimized]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274245">PAJ</a>.</p>
<p>I need to disable checkout and put my isEnabled like this:<br />
public function isEnabled()<br />
{<br />
return $this-&gt;scopeConfig-&gt;isSetFlag(<br />
self::XML_PATH_ENABLE_MAGEPACK_BUNDLING,<br />
ScopeInterface::SCOPE_STORE<br />
);<br />
if ($this-&gt;request-&gt;getFullActionName() == &#8216;checkout_index_index){</p>
<p>        // disable for checkout<br />
        return false;<br />
    }<br />
}<br />
But, the checkout continues to be optimized</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brandon Irwin		</title>
		<link>https://blog.gaiterjones.com/magento-2-javascript-bundling-with-magepack/#comment-274306</link>

		<dc:creator><![CDATA[Brandon Irwin]]></dc:creator>
		<pubDate>Mon, 08 Mar 2021 18:03:50 +0000</pubDate>
		<guid isPermaLink="false">https://blog.gaiterjones.com/?p=2171#comment-274306</guid>

					<description><![CDATA[You mentioned you were in docker running magepack on your php container. 

I have followed the docs using the php docker container but when i run magepack generate --debug it gives me a failed to launch the browser process. 

Have you ran into this?]]></description>
			<content:encoded><![CDATA[<p>You mentioned you were in docker running magepack on your php container. </p>
<p>I have followed the docs using the php docker container but when i run magepack generate &#8211;debug it gives me a failed to launch the browser process. </p>
<p>Have you ran into this?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
