Skip to main content

requirejs-config.js mapping should be in below formate.

var config = { map: { '*': { noConflict: "Codilar_Place/js/noconflict", mabelJquery: "Codilar_Place/js/jquery", mabelSlider: "Codilar_Place/js/slider", mabelScript: "Codilar_Place/js/script", mabelScriptFile: "Codilar_Place/js/script-file", mabelSelectBox: "Codilar_Place/js/selectbox" } } };

var config = {
    map: {
        '*': {
            noConflict: "Codilar_Place/js/noconflict",
            mabelJquery: "Codilar_Place/js/jquery",
            mabelSlider: "Codilar_Place/js/slider",
            mabelScript: "Codilar_Place/js/script",
            mabelScriptFile: "Codilar_Place/js/script-file",
            mabelSelectBox: "Codilar_Place/js/selectbox"
        }
    }
};

if you want to define dependency then define shim part.

hope this will help.

requirejs-config.js mapping should be in below formate.

var config = { map: { '*': { noConflict: "Codilar_Place/js/noconflict", mabelJquery: "Codilar_Place/js/jquery", mabelSlider: "Codilar_Place/js/slider", mabelScript: "Codilar_Place/js/script", mabelScriptFile: "Codilar_Place/js/script-file", mabelSelectBox: "Codilar_Place/js/selectbox" } } };

if you want to define dependency then define shim part.

hope this will help.

requirejs-config.js mapping should be in below formate.

var config = {
    map: {
        '*': {
            noConflict: "Codilar_Place/js/noconflict",
            mabelJquery: "Codilar_Place/js/jquery",
            mabelSlider: "Codilar_Place/js/slider",
            mabelScript: "Codilar_Place/js/script",
            mabelScriptFile: "Codilar_Place/js/script-file",
            mabelSelectBox: "Codilar_Place/js/selectbox"
        }
    }
};

if you want to define dependency then define shim part.

hope this will help.

Source Link
Mohammad Mujassam
  • 2.2k
  • 7
  • 26
  • 29

requirejs-config.js mapping should be in below formate.

var config = { map: { '*': { noConflict: "Codilar_Place/js/noconflict", mabelJquery: "Codilar_Place/js/jquery", mabelSlider: "Codilar_Place/js/slider", mabelScript: "Codilar_Place/js/script", mabelScriptFile: "Codilar_Place/js/script-file", mabelSelectBox: "Codilar_Place/js/selectbox" } } };

if you want to define dependency then define shim part.

hope this will help.