1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

move supported browsers array to package.json

This commit is contained in:
Matthias Kretschmann 2017-05-15 11:51:08 +02:00
parent 310fdcbfda
commit bf99913c93
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
2 changed files with 11 additions and 4 deletions

View File

@ -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 })))

View File

@ -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",