From 29a4c414953116279070c02a87fdc07092ebc546 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 28 May 2017 04:24:33 +0200 Subject: [PATCH] move browserslist to package.json --- gulpfile.babel.js | 5 +---- package.json | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 41965a03..16e76669 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', 'ie >= 10'] - // paths const SRC = site.source, DIST = site.destination, @@ -151,7 +148,7 @@ export const html = () => src(DIST + '/**/*.html') // Styles // const processors = [ - autoprefixer({ browsers: COMPATIBILITY }), + autoprefixer(), cssnano() ] diff --git a/package.json b/package.json index 11b08744..ac2e5a10 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,10 @@ "start": "gulp", "build": "gulp build --production" }, + "browserslist": [ + "last 2 versions", + "ie >= 11" + ], "dependencies": { "bootstrap": "^3.3.6", "jquery": ">=2.1.4",