Open Source Assets Compiler For Projects
I am from the laravel and actully now habitude to its process. It also reflected on assets ( scss/less/vuejs) compilation. I have tried multiple alternatives like preproce. But at last come to the laravel's built in packages.
Laravel's Assets Compilers
1) Laravel Elixir
2) Laravel Mix
Both of the projects are shown here are the gift from the laravel developer to us. By the way this projects are created to work for laravel but you can use this project stand alone for your projects. This projects are npm based so you have to install them using the node package manager ( npm) or yarn.
Some description about both
It's documentation says for Laravel Application. But, You can use it for any project even non php project after all its npm based so you just have to pull the npm dependacys for it
But i will recommand to use laravel mix insted of the laravel elixir. Laravel Mix is next version of laravel elixir and have more facilites than it.
This is the pacakge present in the github repo. of the jefferyway ( Best online web developement teacher for me ). In this package jeffry has shown the way to use laravel mix on your project.
You can see the actul integration of the laravel mix in the github project mchampaneri/gowork
Need Just two files to integrate it
package.json : responsible to fetch the npm dependancies
webpack.mix.js : config file of mix to compile the file