@simonlc/gulp-ssi
v1.0.0
Published
Server Side Includes parser plugin for gulp
Downloads
11
Maintainers
Readme
gulp-ssi
Server Side Includes parser plugin for gulp
Works with both include types
<!--#include file="includes/navigation.html" -->
<!--#include virtual="../templates/navigation.html" -->
Usage
First, install gulp-ssi
as a development dependency:
npm install --save-dev gulp-ssi
Then, add it to your gulpfile.js
:
var ssi = require("gulp-ssi");
gulp.src("./src/*.ext")
.pipe(ssi({
root: '/my-pages'
}))
.pipe(gulp.dest("./dist"));
Options
root (optional)
Type: String
Default: File directory
Set the location where the linked files are hosted.