mise à jour browserslist (IE11 mini)

This commit is contained in:
Raphael 2019-07-17 10:59:19 +02:00
parent 0d68702dea
commit 365d221431
2 changed files with 19 additions and 18 deletions

View file

@ -3,6 +3,7 @@
## Changelog v8.0.0 (xxx 2019) ## Changelog v8.0.0 (xxx 2019)
- corrections typo - corrections typo
- support passé de IE10 à IE11 (browserlist)
## Changelog v7.1.2 (30 janvier 2019) ## Changelog v7.1.2 (30 janvier 2019)

View file

@ -16,33 +16,33 @@ var gaps = require('postcss-gap-properties'); // gaps polyfill
var browsersList = [ var browsersList = [
'> 1%', '> 1%',
'last 2 versions', 'last 2 versions',
'IE >= 10', 'Edge >= 16', 'IE >= 11', 'Edge >= 16',
'Chrome >= 60', 'Chrome >= 60',
'Firefox >= 50', 'Firefox ESR', 'Firefox >= 50', 'Firefox ESR',
'Safari >= 10', 'Safari >= 10',
'ios_saf >= 10', 'ios_saf >= 10',
'Android >= 5' 'Android >= 6'
]; ];
var plugins = [ var plugins = [
unprefix(), unprefix(),
autoprefixer({ autoprefixer({
grid: true, grid: true,
browsers: browsersList browsers: browsersList
}), }),
flexbugs(), flexbugs(),
gaps() gaps()
]; ];
var pluginsProd = [ var pluginsProd = [
unprefix(), unprefix(),
autoprefixer({ autoprefixer({
grid: true, grid: true,
browsers: browsersList browsers: browsersList
}), }),
flexbugs(), flexbugs(),
gaps(), gaps(),
cssnano() cssnano()
]; ];
// tâche cssDev = compile vers knacss-unminified.css // tâche cssDev = compile vers knacss-unminified.css
@ -64,14 +64,14 @@ gulp.task('cssProd', function () {
.pipe(gulp.dest('./css/')); .pipe(gulp.dest('./css/'));
}); });
gulp.task('grillade', function() { gulp.task('grillade', function () {
return gulp.src('./sass/_library/grillade-grid.scss') return gulp.src('./sass/_library/grillade-grid.scss')
.pipe(sass()) .pipe(sass())
.pipe(postcss(pluginsProd)) .pipe(postcss(pluginsProd))
.pipe(gulp.dest('./css/')); .pipe(gulp.dest('./css/'));
}); });
gulp.task('grillade-flex', function() { gulp.task('grillade-flex', function () {
return gulp.src('./sass/_library/grillade-flex.scss') return gulp.src('./sass/_library/grillade-flex.scss')
.pipe(sass()) .pipe(sass())
.pipe(postcss(pluginsProd)) .pipe(postcss(pluginsProd))
@ -79,7 +79,7 @@ gulp.task('grillade-flex', function() {
}); });
// Watcher // Watcher
gulp.task('watch', function() { gulp.task('watch', function () {
gulp.watch(['./sass/*.scss'], ['cssDev']); gulp.watch(['./sass/*.scss'], ['cssDev']);
}); });