Skip to content

requirejs-config.js in pub/static not added when pub/static gets cleared (manually) #10137

@quisse

Description

@quisse

When clearing the contents of the pub/static directory (except .htaccess offcourse), pub/static/_requirejs/frontend/MyName/my-theme/en_US/requirejs-config.js is missing

Preconditions

  1. Magento 2.1.7
  2. PHP 7.0.19
  3. MySQL 5.7.16

Steps to reproduce

  1. Remove all content from pub/static directory except for .htaccess
  2. Refresh a page of your magento site.

Expected result

  1. pub/static/_requirejs/frontend/MyName/my-theme/en_US/requirejs-config.js gets loaded

Actual result

  1. pub/static/_requirejs/frontend/MyName/my-theme/en_US/requirejs-config.js is missing
  2. run bin/magento cache:clean
  3. Refresh a page of your magento site.
  4. pub/static/_requirejs/frontend/MyName/my-theme/en_US/requirejs-config.js is back

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions