Answer the question
In order to leave comments, you need to log in
How to include files via php include in gulp?
hello everyone,
I'm trying to build a site using gulp and ran into such a problem that I don't understand how to automatically build a page from parts into final php using php include. I found plugins for galp, but I can't figure out the syntax, namely how to set the settings so that galp includes files that are written
in this way <?php include 'footer.php' ?>
One of the plugins found by www.npmjs.com /package/gulp-file-include, you can use its example to show how to correctly set the settings for including files via <?php include 'footer.php' ?>.
Or if you have another option, you can drop it by specifying the name of the plugin.
I understand that on pages with the .php extension, the php include function works fine, but I'm trying to make the final assembly of the site without this function, in order to optimize loading speed.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question