Skip to content

Commit

Permalink
relocate browsers list
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar authored and RoepStoep committed May 4, 2020
1 parent a68e872 commit f1b7cb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .browserslistrc
@@ -0,0 +1,6 @@
last 5 versions
Firefox ESR
not IE < 12
not < 0.1%
not IE_Mob < 12
not android < 4.4
6 changes: 1 addition & 5 deletions ui/gulpfile.js
Expand Up @@ -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';
Expand Down Expand Up @@ -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())
);
Expand Down

0 comments on commit f1b7cb6

Please sign in to comment.