relocate browsers list

pull/5168/head
Thibault Duplessis 2019-06-04 12:40:27 +02:00
parent 8509550787
commit 9e3363a6fc
2 changed files with 7 additions and 5 deletions

6
.browserslistrc 100644
View File

@ -0,0 +1,6 @@
last 5 versions
Firefox ESR
not IE < 12
not < 0.1%
not IE_Mob < 12
not android < 4.4

View File

@ -16,10 +16,6 @@ const sassOptions = {
errLogToConsole: true,
outputStyle: 'expanded'
};
const autoprefixerOptions = {
// https://browserl.ist/?q=last+5+versions%2C+Firefox+ESR%2C+not+IE+<+12%2C+not+<+0.1%25%2C+not+IE_Mob+<+12%2C+not+android+<+4.4
browsers: 'last 5 versions, Firefox ESR, not IE < 12, not < 0.1%, not IE_Mob < 12, not android < 4.4'.split(', ')
};
const destination = () => gulp.dest('../public/css/');
const sourcesGlob = './*/css/**/*.scss';
@ -57,7 +53,7 @@ gulp.task('css-prod', () => gulp
...sassOptions,
...{ outputStyle: 'compressed' }
}).on('error', sass.logError))
.pipe(autoprefixer(autoprefixerOptions))
.pipe(autoprefixer())
.pipe(renameAs('min'))
.pipe(destination())
);