I just migrated a huge project of mine to gulp and all went well, until I got to the gulp-twig plugin. The information on the plugin’s main npm page lacks explanation and I am struggling to get it to work with my project.
https://www.npmjs.com/package/gulp-twig
I managed to find only one tutorial on using gulp-twig , but it is compiling *.twig files for the build.
http://analyticl.com/blog/frontend-templating-with-gulp-and-twig-js
I need gulp-twig to compile my twig files into my root app directory for preview purposes on the local server. The tutorial only explains how to do this for the final build in /dist/.
Here is some code for reference:
http://stackoverflow.com/questions/41595514/use-gulp-twig-to-compile-twig-to-html-files