gulp-clear-inline-css
v1.0.4
Published
Simple gulp plugin for clearing HTML inline CSS styles
Downloads
8
Maintainers
Readme
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>