trustpilot / plugin-magento2

Magento 2 plugin for sending invitation data to Trustpilot
MIT License
10 stars 27 forks source link

Moved @import css to default.xml #11

Closed Krielkip closed 6 years ago

Krielkip commented 6 years ago

When deploying static content in Magento with the strategy Compact, the code fails on the @import of the font-awesome.

Example cli command bin/magento setup:static-content:deploy --strategy=compact --area frontend nl_NL --no-interaction -f Error:

Deploy using compact strategy
base/Magento/base/default               1610/1610           ============================ 100% %  5 secs
frontend/Magento/base/default           665/832             ======================>----- 79% %   2 secs

  [Magento\Framework\Exception\FileSystemException]
  Cannot read contents from file "/data/web/projects/my-wbshop/deploy/development/releases/4/pub/static/frontend/Magento/base/default/css/https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" Warning!file_get_contents(/data/w
  eb/projectsmy-wbshop/deploy/development/releases/4/pub/static/frontend/Magento/base/default/css/https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css): failed to open stream: No such file or directory

Moving the @import to the layout/default.yml fixes this problem.