Install
npm i -D gulp-posthtml
Usage
Options
Plugins
Name | Type | Default | Description |
---|---|---|---|
plugins |
{Array} |
[] |
PostHTML Plugins |
Options
Name | Type | Default | Description |
---|---|---|---|
options |
{Object} |
{} |
PostHTML Options |
gulpfile.js
Config
Name | Type | Default | Description |
---|---|---|---|
plugins |
{Array} |
[] |
PostHTML Plugins |
options |
{Object} |
{} |
PostHTML Options |
gulpfile.js
posthtml.config.js
Context
Name | Type | Default | Description |
---|---|---|---|
env |
{String} |
'development' |
process.env.NODE_ENV |
file |
{Object} |
dirname, basename, extname |
File |
options |
{Object} |
{} |
Options (Parser, Render, Plugin Options) |
posthtml.config.js
module parser: 'posthtml-sugarml' plugins: 'posthtml-include': root: filedirname 'posthtm-expressions': locals: optionslocals 'htmlnano': env === 'production' ? {} : false
gulpfile.js
Maintainer
Ivan Voischev |
Contributors
Michael Ciniawsky |