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

Merge pull request #119 from ascribe/feature/autoprefixer7

Autoprefixer 7
This commit is contained in:
Matthias Kretschmann 2017-05-15 11:58:28 +02:00 committed by GitHub
commit 076d8dced4
2 changed files with 12 additions and 5 deletions

View File

@ -50,9 +50,6 @@ console.log("")
// Port to use for the development server // Port to use for the development server
const PORT = 1337 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 // paths
const SRC = site.source + '/', const SRC = site.source + '/',
DIST = site.destination + '/' DIST = site.destination + '/'
@ -154,7 +151,7 @@ export const css = () => src(SRC + '_assets/styles/bigchain.scss')
.pipe($.sass({ .pipe($.sass({
includePaths: ['node_modules'] includePaths: ['node_modules']
}).on('error', $.sass.logError)) }).on('error', $.sass.logError))
.pipe($.autoprefixer({ browsers: COMPATIBILITY })) .pipe($.autoprefixer())
.pipe($.if(isProduction || isStaging, $.cleanCss())) .pipe($.if(isProduction || isStaging, $.cleanCss()))
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.write())) .pipe($.if(!(isProduction || isStaging), $.sourcemaps.write()))
.pipe($.if(isProduction || isStaging, $.header(BANNER, { pkg: pkg }))) .pipe($.if(isProduction || isStaging, $.header(BANNER, { pkg: pkg })))

View File

@ -13,6 +13,16 @@
"start": "gulp", "start": "gulp",
"build": "gulp build --production" "build": "gulp build --production"
}, },
"browserslist": [
"last 2 versions",
"Chrome >= 30",
"Safari >= 6.1",
"Firefox >= 35",
"Opera >= 32",
"iOS >= 8",
"Android >= 4",
"ie >= 10"
],
"dependencies": { "dependencies": {
"is-in-viewport": "^3.0.0", "is-in-viewport": "^3.0.0",
"jquery": "^3.1.1", "jquery": "^3.1.1",
@ -33,7 +43,7 @@
"del": "^2.0.2", "del": "^2.0.2",
"fs": "0.0.1-security", "fs": "0.0.1-security",
"gulp": "github:gulpjs/gulp#4.0", "gulp": "github:gulpjs/gulp#4.0",
"gulp-autoprefixer": "^3.0.1", "gulp-autoprefixer": "^4.0.0",
"gulp-awspublish": "^3.0.0", "gulp-awspublish": "^3.0.0",
"gulp-awspublish-router": "^0.1.1", "gulp-awspublish-router": "^0.1.1",
"gulp-clean-css": "^3.0.4", "gulp-clean-css": "^3.0.4",