Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 571 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 571 Bytes

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>