-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan
committed
Aug 17, 2018
1 parent
743a016
commit da6ca86
Showing
5 changed files
with
190 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
var gulp = require('gulp'); | ||
var cleanCSS = require('gulp-clean-css'); | ||
var sass = require('gulp-sass'); | ||
var autoprefixer = require('gulp-autoprefixer'); | ||
|
||
gulp.task('sass', function() { | ||
return gulp.src('assets/scss/rocketcss.scss').pipe(sass()).pipe(autoprefixer({ | ||
browsers: [ | ||
"last 2 versions", | ||
">= 0.2%", | ||
"Chrome >= 55", | ||
"Firefox >= 54", | ||
"iOS >= 10", | ||
"Safari >= 10", | ||
"Android >= 4.4" | ||
], | ||
cascade: false | ||
})).pipe(cleanCSS({ | ||
level: { | ||
1: { | ||
all: true, | ||
tidySelectors: true | ||
} | ||
} | ||
})).pipe(sass({ | ||
outputStyle: 'compressed' | ||
}).on('error', sass.logError)).pipe(gulp.dest('rocketcss-dist/css/')) | ||
}) | ||
|
||
gulp.task('production', ['sass']); |
Oops, something went wrong.