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 />

Client-side: LESS files are compiled every page load on the client-side. This results<br />

in exceptionally slow response times and horrible flash-of-unstyled-text.<br />

How do they influence the <strong>developer</strong> workflow during theming?<br />

Client-side (Javascript based) compilation is hardly a consideration as <strong>developer</strong>s<br />

should be more efficient than that. Magento provides a Grunt toolkit which will<br />

watch the source files and re-compile the output ones when changes are made.<br />

More information can be found on DevDocs. Further, we have had good success<br />

using Gulp from the Snowdog Frontools project and their Magento SASS port.<br />

SASS (and Gulp) compiles significantly faster than LESS (and Grunt) and Frontools<br />

provides additional features such as BabelJS support.<br />

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

59

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

Saved successfully!

Ooh no, something went wrong!