Skip to content

How to override adminhtml js file in custom module?

I need to override below file in my custom module Ayakil_CatalogPermissionsExtended

vendor/magento/module-catalog-permissions/view/adminhtml/web/category_edit.js

The custom module was created and placed the category_edit.js(/app/code/Ayakil/CatalogPermissionsExtended/view/adminhtml/web/js/category_edit.js)

Content of requirejs-config.js is below

var config = {
config: {
    mixins: {
        'Magento_CatalogPermissions/js/category_edit': {
            'Ayakil_CatalogPermissionsExtended/js/category_edit': true
        }
    }
}
};

but unfortunately after static content deploy, in the admin section core vendor modules js file is picking up not the override one.

Any clue where i missed this overriding, it will be highly appreciated.
Thanks