04.07.2019 Views

frontend-developer-1

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Static Asset Deployment<br />

5.2 DESCRIBE THE EFFECT OF DEPLOY<br />

MODES ON FRONTEND DEVELOPMENT<br />

What are the differences between development and production<br />

mode in regard to <strong>frontend</strong> development?<br />

According to DevDocs, production mode will not generate any missing static files<br />

whereas development and default will attempt to symlink any necessary assets<br />

into the corresponding folder in pub/static.<br />

In <strong>developer</strong> mode, errors are rendered in the browser, while in production<br />

and default they are not shown and only written to a report file. This makes the<br />

feedback loop quicker in development mode.<br />

5.3 DEMONSTRATE YOUR UNDERSTANDING<br />

OF LESS > CSS DEPLOYMENT AND ITS<br />

RESTRICTIONS IN DEVELOPMENT<br />

Which LESS compilation options are available in Magento? How<br />

are they different?<br />

Server-side and client-side are the two available options. This is configured in Store<br />

> Configuration > Advanced > Developer > Frontend Development Workflow.<br />

Server-side: LESS files are compiled with a PHP LESS library. In <strong>developer</strong> mode,<br />

PHP will generate the CSS files on the fly provided there is not one already. Running<br />

php bin/magento setup:static-content:deploy will also compile the<br />

stylesheets.<br />

Copyright © 2018, SwiftOtter, Inc.<br />

58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!