From 310fdcbfda3adcbdc62edaa6936a92df51eef3f7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 15 May 2017 11:43:57 +0200 Subject: [PATCH 1/2] bump gulp-autoprefixer --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9fec3a0..bb63dbf 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "del": "^2.0.2", "fs": "0.0.1-security", "gulp": "github:gulpjs/gulp#4.0", - "gulp-autoprefixer": "^3.0.1", + "gulp-autoprefixer": "^4.0.0", "gulp-awspublish": "^3.0.0", "gulp-awspublish-router": "^0.1.1", "gulp-clean-css": "^3.0.4", From bf99913c936135ad6bd7e59289ffd24df1d2e054 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 15 May 2017 11:51:08 +0200 Subject: [PATCH 2/2] move supported browsers array to package.json --- gulpfile.babel.js | 5 +---- package.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 1d35d55..03b25a6 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -50,9 +50,6 @@ console.log("") // Port to use for the development server const PORT = 1337 -// Browsers to target when prefixing CSS -const COMPATIBILITY = ['last 2 versions', 'Chrome >= 30', 'Safari >= 6.1', 'Firefox >= 35', 'Opera >= 32', 'iOS >= 8', 'Android >= 4', 'ie >= 10'] - // paths const SRC = site.source + '/', DIST = site.destination + '/' @@ -154,7 +151,7 @@ export const css = () => src(SRC + '_assets/styles/bigchain.scss') .pipe($.sass({ includePaths: ['node_modules'] }).on('error', $.sass.logError)) - .pipe($.autoprefixer({ browsers: COMPATIBILITY })) + .pipe($.autoprefixer()) .pipe($.if(isProduction || isStaging, $.cleanCss())) .pipe($.if(!(isProduction || isStaging), $.sourcemaps.write())) .pipe($.if(isProduction || isStaging, $.header(BANNER, { pkg: pkg }))) diff --git a/package.json b/package.json index bb63dbf..dbbac82 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,16 @@ "start": "gulp", "build": "gulp build --production" }, + "browserslist": [ + "last 2 versions", + "Chrome >= 30", + "Safari >= 6.1", + "Firefox >= 35", + "Opera >= 32", + "iOS >= 8", + "Android >= 4", + "ie >= 10" + ], "dependencies": { "is-in-viewport": "^3.0.0", "jquery": "^3.1.1",