gulp-content-plugin
A blueprint for a gulp plugin that transforms the content of a given file.
Default usage: Fork gulp-content-plugin
, change the plugin.js
and make the result accessible to your gulpfile (let's say as gulp-my-content-plugin
).
Then use it just like any other gulp plugin:
var gulp = ; var myContentPlugin = ; gulp;
If you don't want to fork the whole repository for every content-transforming plugin you want to use, just use the .fork()
method on the content plugin like this:
var gulp = ; var contentPlugin = ; var upperCase = contentPlugin; gulp // input: hello world!; // output: HELLO WORLD!
All necessary informations are included as comments in the plugin.js
.