Skip to content

tsmilan/autoprefixer-using-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autoprefixer

A sample project file using autoprefixer with gulp.

Usage

The tasks in gulpfile.js:

var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');

gulp.task('styles', function () {
  return gulp.src('css/styles.css')
  .pipe(autoprefixer('last 2 version'))
  .pipe(gulp.dest('build'))
});

gulp.task('watch', function() {
  gulp.watch('css/styles.css', gulp.series('styles'));
});

Use gulp watch to automatically run the autoprefixer when the css file gets modified.

About

A sample project file using autoprefixer with gulp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published