<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>composer replace - Tag Vibe</title>
	<atom:link href="https://www.tagvibe.com/tag/composer-replace/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tagvibe.com</link>
	<description>Connect. Create. Conquer.</description>
	<lastBuildDate>Mon, 06 May 2024 09:46:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://www.tagvibe.com/wp-content/uploads/2024/05/cropped-cropped-logo-tagvibe-1-32x32.png</url>
	<title>composer replace - Tag Vibe</title>
	<link>https://www.tagvibe.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to remove unused core modules from Magento 2?</title>
		<link>https://www.tagvibe.com/how-to-remove-unused-core-modules-from-magento-2/</link>
		
		<dc:creator><![CDATA[Rajat kar]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 19:11:42 +0000</pubDate>
				<category><![CDATA[Magento2]]></category>
		<category><![CDATA[composer replace]]></category>
		<category><![CDATA[magento core module]]></category>
		<category><![CDATA[remove core modules]]></category>
		<category><![CDATA[remove yotpo]]></category>
		<guid isPermaLink="false">http://tagvibe.com/?p=131</guid>

					<description><![CDATA[<p>To reduce the load time sometimes we should to disable core modules for performance or security reasons. There, I sharing here the default way to disable a module: bin/magento module:disable Vendor_Module But in the above method below problem will be arise: Module will be disable but files are still there. If you run integration tests or static tests, it will run with including the disabled modules. So, we need a method to remove the module in a right way with the help of composer Remove module with composer As the core modules are loaded via composer as dependencies, we cannot simply remove them from the composer.json. we can remove those via replace capability. composer file looks like below with replace key &#8220;require&#8221;: { [&#8230;] }, &#8220;replace&#8221;: { &#160; &#160; &#160;&#8220;magento/module-marketplace&#8221;: &#8220;*&#8221; }, &#8220;config&#8221;: { [&#8230;] Example to remove core modules like dotmailer, vertex, yotpo&#160; below &#8220;replace&#8221;:{ &#160; &#160; &#160; &#8220;dotmailer/dotmailer-magento2-extension&#8221;: &#8220;*&#8221;, &#160; &#160; &#160; &#8220;dotmailer/dotmailer-magento2-extension-package&#8221;: &#8220;*&#8221;, &#160; &#160; &#160; &#8220;dotmailer/dotmailer-magento2-extension-enterprise&#8221;: &#8220;*&#8221;, &#160; &#160; &#160; &#8220;dotmailer/dotmailer-magento2-extension-chat&#8221;: &#8220;*&#8221;, &#160; &#160; &#160; &#8220;vertex/module-tax&#8221;: &#8220;*&#8221;, &#160; &#160; &#160; &#8220;vertex/sdk&#8221;: &#8220;*&#8221;, &#160; &#160; &#160; &#8220;vertex/module-address-validation&#8221;:&#8221;*&#8221;, &#160; &#160; &#160; &#8220;yotpo/magento2-module-yotpo-reviews&#8221; : &#8220;*&#8221; }, Then, run the &#8220;composer update&#8221; command to remove the core modules which is mentioned inside replace section.</p>
<p>The post <a href="https://www.tagvibe.com/how-to-remove-unused-core-modules-from-magento-2/">How to remove unused core modules from Magento 2?</a> first appeared on <a href="https://www.tagvibe.com">Tag Vibe</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>To reduce the load time sometimes we should to disable core modules for performance or security reasons. There, I sharing here the default way to disable a module:</p>
<p><span class="gtfy-1 gtfy-2" style="color: #008080;"><em>bin/magento module:disable Vendor_Module</em></span></p>
<p>But in the above method below problem will be arise:</p>
<ul>
<li>Module will be disable but files are still there.</li>
<li>If you run integration tests or static tests, it will run with including the disabled modules.<br />
So, we need a method to remove the module in a right way with the help of composer</li>
</ul>
<p>Remove module with composer</p>
<p>As the core modules are loaded via composer as dependencies, we cannot simply remove them from the composer.json. we can remove those via replace capability.</p>
<p>composer file looks like below with replace key</p>
<p><span style="color: #008080;"><em>&#8220;require&#8221;: {</em></span><br />
<span style="color: #008080;"><em>[&#8230;]</em></span><br />
<span style="color: #008080;"><em>},</em></span><br />
<span style="color: #008080;"><em>&#8220;replace&#8221;: {</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp;&#8220;magento/module-marketplace&#8221;: &#8220;*&#8221;</em></span><br />
<span style="color: #008080;"><em>},</em></span><br />
<span style="color: #008080;"><em>&#8220;config&#8221;: {</em></span><br />
<span style="color: #008080;"><em>[&#8230;]</em></span></p>
<p>Example to remove core modules like dotmailer, vertex, yotpo&nbsp; below</p>
<p><span style="color: #008080;"><em>&#8220;replace&#8221;:{</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;dotmailer/dotmailer-magento2-extension&#8221;: &#8220;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;dotmailer/dotmailer-magento2-extension-package&#8221;: &#8220;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;dotmailer/dotmailer-magento2-extension-enterprise&#8221;: &#8220;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;dotmailer/dotmailer-magento2-extension-chat&#8221;: &#8220;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;vertex/module-tax&#8221;: &#8220;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;vertex/sdk&#8221;: &#8220;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;vertex/module-address-validation&#8221;:&#8221;*&#8221;,</em></span><br />
<span style="color: #008080;"><em>&nbsp; &nbsp; &nbsp; &#8220;yotpo/magento2-module-yotpo-reviews&#8221; : &#8220;*&#8221;</em></span><br />
<span style="color: #008080;"><em>},</em></span></p>
<p>Then, run the &#8220;composer update&#8221; command to remove the core modules which is mentioned inside replace section.</p><p>The post <a href="https://www.tagvibe.com/how-to-remove-unused-core-modules-from-magento-2/">How to remove unused core modules from Magento 2?</a> first appeared on <a href="https://www.tagvibe.com">Tag Vibe</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
