1.0.4 • Published 6 years ago

gulp-clear-inline-css v1.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

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>
1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago