From a4f6da8bdc42b0b8f413a9cd5bb6977059d6405d Mon Sep 17 00:00:00 2001 From: Jonas Kuske <30421456+jonaskuske@users.noreply.github.com> Date: Sun, 31 May 2020 01:30:58 +0200 Subject: [PATCH 1/3] refactor: use env-less browserslist --- gulpfile.js | 2 +- package.json | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c6032f5..4e21ebd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -66,7 +66,7 @@ const style = () => { .pipe(endDiff('css variables')) .pipe(startDiff()) - .pipe(postcss([autoprefixer({ env: 'legacy' })])) + .pipe(postcss([autoprefixer()])) .pipe(endDiff('autoprefixer')) .pipe(sourcemaps.write('.')) diff --git a/package.json b/package.json index 74a93ff..908786b 100644 --- a/package.json +++ b/package.json @@ -64,11 +64,9 @@ "stylelint": "^13.5.0", "stylelint-config-standard": "^20.0.0" }, - "browserslist": { - "legacy": [ + "browserslist": [ "defaults AND not android 4.4.3" - ] - }, + ], "files": [ "dist/*.css", "LICENSE.md" From ca6ef595c1cd6d2acff01f06198c25ee59703917 Mon Sep 17 00:00:00 2001 From: Jonas Kuske <30421456+jonaskuske@users.noreply.github.com> Date: Sun, 31 May 2020 01:31:13 +0200 Subject: [PATCH 2/3] feat: autoprefix docs css --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 4e21ebd..5a6b03e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -118,7 +118,7 @@ const docs = () => { // * Process CSS * .pipe(cssOnly) .pipe(sourcemaps.init()) - .pipe(postcss([cssnano()])) + .pipe(postcss([autoprefixer(), cssnano()])) .pipe(sourcemaps.write('.')) .pipe(cssOnly.restore) From aad0bbe4a9b2b51909f89b14edbfb43ebac9aed6 Mon Sep 17 00:00:00 2001 From: Jonas Kuske <30421456+jonaskuske@users.noreply.github.com> Date: Sun, 31 May 2020 01:51:26 +0200 Subject: [PATCH 3/3] refactor: remove redundant browserslist query --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 908786b..adfb4e1 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "stylelint-config-standard": "^20.0.0" }, "browserslist": [ - "defaults AND not android 4.4.3" + "defaults" ], "files": [ "dist/*.css",