Fix error when on sass file compilation

This commit is contained in:
christianesperar 2016-05-25 01:19:59 +08:00
parent 9a9bd41569
commit 8eb91e67f1
3 changed files with 15 additions and 9 deletions

View file

@ -1322,7 +1322,7 @@ ul.msg_list li a .message {
position: absolute;
text-shadow: none;
top: 100%;
z-index: 1000;
z-index: 9998;
border: 1px solid #D9DEE4;
border-top-left-radius: 0;
border-top-right-radius: 0; }

File diff suppressed because one or more lines are too long

View file

@ -15,20 +15,26 @@ gulp.task('scripts', function() {
.pipe(gulp.dest(DEST+'/js'));
});
gulp.task('sass', function() {
return sass('src/scss/*.scss')
.pipe(concat('custom.css'))
.pipe(gulp.dest(DEST+'/css'))
.pipe(rename({suffix: '.min'}))
.pipe(uglify())
// TODO: Maybe we can simplify how sass compile the minify and unminify version
var compileSASS = function (filename, options) {
return sass('src/scss/*.scss', options)
.pipe(concat(filename))
.pipe(gulp.dest(DEST+'/css'));
};
gulp.task('sass', function() {
return compileSASS('custom.css', {});
});
gulp.task('sass-minify', function() {
return compileSASS('custom.min.css', {style: 'compressed'});
});
gulp.task('watch', function() {
// Watch .js files
gulp.watch('src/js/*.js', ['scripts']);
// Watch .scss files
gulp.watch('src/scss/*.scss', ['sass']);
gulp.watch('src/scss/*.scss', ['sass', 'sass-minify']);
});
// Default Task