Compat build: specify target browsers

To make compat build more deterministic. Fixes #804
This commit is contained in:
Simon Epskamp 2018-11-26 10:27:22 +01:00
parent 161b034367
commit 44d81aabff

View File

@ -58,7 +58,13 @@ module.exports = function(grunt) {
ignore: ['*.min.js'],
presets: [["env", {
targets: {
browsers: compat ? ['defaults'] : [
browsers: compat ? [
'IE >= 11',
'Safari >= 9',
'Last 2 Chrome versions',
'Last 2 Firefox versions',
'Last 2 Edge versions'
] : [
'Last 2 Chrome versions',
'Last 2 Firefox versions',
'Last 2 Safari versions',