ndeet / plg_system_less

A Joomla! system plugin to compile .less files on the fly.
GNU Lesser General Public License v3.0
17 stars 13 forks source link

Autoprefixer capabilities #33

Closed Olg-E closed 8 years ago

Olg-E commented 8 years ago

Hi Andreas, Do you plan add Autoprefixer capabilities (https://github.com/postcss/autoprefixer, https://github.com/less/less-plugin-autoprefix) to you plugin?

ndeet commented 8 years ago

Hi Olg-E,

generally autoprefixing is a good idea and a very nice feature. The thing is, these are JS libraries where you need nodeJS tooling with Grunt/Gulp/Webpack/... build tools. plg_system_less uses a PHP implementation of the original JS lessc library. So to make autoprefixer work someone would need to port it to PHP too.

To be honest, since I wrote the plugin a lot has changed in frontend development. At that time that may have made sense to compile Less with PHP for small changes (but no, in hindsight it may never had made sense :)).

If you want features like autoprefixing and many other nice things like minification, JS bundling, live reload, ... you should look into how to run those tools with nodeJS and Gulp. Maybe also switch from Less to Sass (Now with twitter bootsrap switching from Less to Sass I guess Less will gone in next 1-2 years).

ndeet commented 8 years ago

Closing, thx.