Frontend workflow done different.
Forget the hassle of installing Node on your local system just to compile some code.
... installing vendor ...
test.unglue: load and test (/var/www/example.unglue)
test.unglue [css] Collecting data [=======] 100% (1/1)
test.unglue [css] Send API request
test.unglue [css] Compiling done in 0.16s
Add the unglue/client composer package to the require-dev section of your composer.json. This will install the unglue binary to the vendor folder.
composer require --dev unglue/client
Create an .unglue file in the directory you want your dist files to be in. For example dist/main.unglue.
You don't have to include the options key in the unglue file.
Default is maps false and compress true.
Find more informations about the unglue file here.
Run the watch command to compile the code on startup and whenever a file changes.
The unglue client will connect to our Server by default. If you want to connect to your own server instance you can easily do that.
./vendor/bin/unglue compile --server=address:port