Skip to content

chirva-ivan/gulp-clear-inline-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-clear-inline-css

Simple gulp plugin for clearing HTML inline CSS styles.

npm install gulp-clear-inline-css

Usage:

var clearInlineCss = require('gulp-clear-inline-css');

gulp.task('remove-inline-styles', function() {
  return gulp.src('./templates/*.html')
    .pipe(clearInlineCss())
    .pipe(gulp.dest('./clear-templates/'));
});

Input:

<body>
  <p class="marked-text" style="font-size: 16px; line-height: 1.56; font-weight: 500;">Test</p>
</body>

Output:

<body>
  <p class="marked-text">Test</p>
</body>

About

Simple gulp plugin for clearing HTML inline CSS styles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages