Socket
Book a DemoInstallSign in
Socket

gulp-prune-html

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-prune-html

Prune HTML based on CSS selectors

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

gulp-prune-html

NPM version Build Status

Prune your HTML using https://github.com/thlorenz/prune-html

Usage

First, install gulp-prune-html as a development dependency:

npm install --save-dev gulp-prune-html

Then, add it to your gulpfile.js:

var prune-html = require('gulp-prune-html');

gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(prune-html(['h1', '.details', 'h3'])
    .pipe(gulp.dest('build'));
});

Prune HTML file based on the css selectors.

Keywords

html

FAQs

Package last updated on 22 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts