Closed Krielkip closed 6 years ago
When deploying static content in Magento with the strategy Compact, the code fails on the @import of the font-awesome.
@import
Example cli command bin/magento setup:static-content:deploy --strategy=compact --area frontend nl_NL --no-interaction -f Error:
bin/magento setup:static-content:deploy --strategy=compact --area frontend nl_NL --no-interaction -f
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.
layout/default.yml
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:Moving the
@import
to thelayout/default.yml
fixes this problem.