Created
April 19, 2015 18:22
-
-
Save corysimmons/df9416846494905e8751 to your computer and use it in GitHub Desktop.
Lost 6.0.0 gulpfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp = require('gulp'), | |
| sourcemaps = require('gulp-sourcemaps'), | |
| postcss = require('gulp-postcss'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| lost = require('lost'); | |
| var paths = { | |
| cssSource: 'src/css', | |
| cssDestination: 'dist/css' | |
| }; | |
| gulp.task('styles', function() { | |
| return gulp.src(paths.cssSource + '/**/*.css') | |
| .pipe(sourcemaps.init()) | |
| .pipe(postcss([ | |
| lost() | |
| ])) | |
| .pipe(autoprefixer()) | |
| .pipe(sourcemaps.write('./')) | |
| .pipe(gulp.dest(paths.cssDestination)); | |
| }); | |
| gulp.watch(paths.cssSource + '/**/*.css', ['styles']); | |
| gulp.task('default', ['styles']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment