suppression de browserslist dans gulpfile
This commit is contained in:
parent
7249492817
commit
47f025409b
1 changed files with 2 additions and 15 deletions
17
gulpfile.js
17
gulpfile.js
|
@ -13,22 +13,10 @@ var unprefix = require('postcss-unprefix'); // deletes old prefixes
|
||||||
var flexbugs = require('postcss-flexbugs-fixes'); // flexbox fixes for IE
|
var flexbugs = require('postcss-flexbugs-fixes'); // flexbox fixes for IE
|
||||||
var gaps = require('postcss-gap-properties'); // gaps polyfill
|
var gaps = require('postcss-gap-properties'); // gaps polyfill
|
||||||
|
|
||||||
var browsersList = [
|
|
||||||
'> 1%',
|
|
||||||
'last 2 versions',
|
|
||||||
'IE >= 10', 'Edge >= 16',
|
|
||||||
'Chrome >= 60',
|
|
||||||
'Firefox >= 50', 'Firefox ESR',
|
|
||||||
'Safari >= 10',
|
|
||||||
'ios_saf >= 10',
|
|
||||||
'Android >= 5'
|
|
||||||
];
|
|
||||||
|
|
||||||
var plugins = [
|
var plugins = [
|
||||||
unprefix(),
|
unprefix(),
|
||||||
autoprefixer({
|
autoprefixer({
|
||||||
grid: true,
|
grid: true
|
||||||
browsers: browsersList
|
|
||||||
}),
|
}),
|
||||||
flexbugs(),
|
flexbugs(),
|
||||||
gaps()
|
gaps()
|
||||||
|
@ -37,8 +25,7 @@ var plugins = [
|
||||||
var pluginsProd = [
|
var pluginsProd = [
|
||||||
unprefix(),
|
unprefix(),
|
||||||
autoprefixer({
|
autoprefixer({
|
||||||
grid: true,
|
grid: true
|
||||||
browsers: browsersList
|
|
||||||
}),
|
}),
|
||||||
flexbugs(),
|
flexbugs(),
|
||||||
gaps(),
|
gaps(),
|
||||||
|
|
Loading…
Reference in a new issue