Erik Pöhler's Blog

 

Build & Watch SASS files and other frontend assets with PHP

I use NodeJS, its package manager NPM, and even NVM to install different versions of NPM in many projects to build frontend assets. My recurring use case is: compile some SASS files into CSS, join some files, minify the output, copy fonts and icon fonts, pre-compress static assets, and so on. I am familiar with helper tools like Grunt and Gulp to set up these tasks. In a recent PHP project, I tried to avoid the use of NodeJS/NPM. I was surprised how easy it is to achieve the same results with nothing but plain old PHP. Read more →