Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNGemignani/magento2_requirejs_disable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 Module that disables selected requirejs-config.js files from other modules

Description

You can set the modules to disable it whole requirejs in the magento2 backend, under Store > Configuration > Advanced > Development > RequireJs Configuration.

You can enable the module, and select for which module the requirejs should be disabled.

Clear cache after saving the new configuration.

Be careful to not disable essential requirejs without given an alternative.

Installation

Just run from your magento2 root directory (or clone this repo to app/code/Gemig/Requirejs):

composer require "gemig/requirejs dev-master"

bin/magento module:enable Gemig_Requirejs

bin/magento setup:upgrade

bin/magento setup:di:compile

Notes

This module was created after a question posted in stack overflow and it comments. https://magento.stackexchange.com/q/139869/74078

About

This is a simple module that helps you disable requirejs files for any module from magento2

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages