skip to Main Content

Environment:
– Magento 2.3
– Mode: Developer
– Cache: Disabled
– empty: pub/static, except .htaccess
– empty: var/cache, var/composer_home, var/page_cache, var/view_preprocessed

From there it is my understanding that if you reach the website through a browser, considering there are no static files ready to use yet, then Magento will either copy (production mode) or symlink (developer mode) the required css/js to pub/static folder for the theme used (as well as parent themes for the required files), so that the website can load properly and accordingly.

But what happens instead in developer mode, it creates a single file:

pub/static/frontend/Vendor/theme_name/en_US/requirejs-config.js

Any idea why the symlinks are not generated and what’s happening, why this single file requirejs-config.js is generated?

PS: we do not want to deploy static content.

3

Answers


  1. In command line :

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    

    Clear your navigator’s cache and try to reload your page.

    If it still doesn’t work :

    php bin/magento setup:static-content:deploy -f
    php bin/magento setup:upgrade
    

    Clear your navigator’s cache and try to reload your page again.

    Hope it’s help.

    Login or Signup to reply.
  2. try this

    php bin/magento setup:static-content:deploy -f en_US yourlang_YourLang

    Login or Signup to reply.
  3. You can try this command
    bin/magento dev:source-theme:deploy instead of bin/magento setup:static-content:deploy -f

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search