verumconsilium / laravel-browsershot

Browsershot wrapper for Laravel 5
MIT License
111 stars 20 forks source link

Added option to change the path to node_modules #15

Open tormjens opened 4 years ago

tormjens commented 4 years ago

I stumbled upon this for while working on a project. We were seeing huge node_modules folders, and needed to change the directory when it should be found.

This should solve that issue.

You can set a env variable NODE_MODULES_PATH or if you don't it'll use the node_modules in your project.