0

Do I want to Remove calendar.js from Magento 2 luma theme homepage? If I remove require.js from custom module it removes calendar.js and other all. Also, Can I remove the mapping of calendar.js from require.js?

app/code/Namespace/Modulename/view/frontend/layout/cms_index_index.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <head>
         <remove src="requirejs/require.js"/> 
    </head>
    <body/>
</page>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.