Skip to content

Support requirejs-config.js changes #6

@hieudmg

Description

@hieudmg

I often work with requirejs-config.js file for modules to define custom mapping and/or javascript mixins. It would be nice if the watch command can detect the changes in modules and themes requirejs-config.js files and remove the main requirejs-config.js file in pub/static theme dir. Magento will regenerate that file on page load and apply new contents.

Currently I used a custom js script to what for changes in app/code/*/*/view/frontend/requirejs-config.js and then remove the files in pub/static/frontend/*/*/*/requirejs-config.js when changes are detected.

Another suggestion is allowing custom configuration file that define watch and remove patterns for automatic cleanup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions