gulp-extract-text
By Ralph Crisostomo - 2018/01/07
Description
A Gulp plugin for extracting text from a file.
Install
npm install --save-dev gulp-extract-text
Extract files
Extract text from different files like .txt
, .html
, .css
, .js
and etc.
Parameters
let extract_text_params = pattern_start : "<pattern start>" pattern_end : "<pattern end>"
Basic Usage
Let say we want to extract all the text inside <head>
tag and export it to dist
directory.
const gulp = ;const extract_text = ; let extract_text_params = pattern_start : "<head>" pattern_end : "</head>" gulp;