Skip to content
Snippets Groups Projects
Commit e139088e authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge remote-tracking branch 'origin/master'

parents c2b79922 dabeba48
Branches
Tags
No related merge requests found
// Run with "--env production" to get production optimized output // Run with "--env production" to get production optimized output
// Load plugins // Load plugins
var gulp = require('gulp'), var autoprefixer = require('autoprefixer'),
gulp = require('gulp'),
gulpif = require('gulp-if'), gulpif = require('gulp-if'),
postcss = require('gulp-postcss'),
sass = require('gulp-sass'), sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'), sourcemaps = require('gulp-sourcemaps'),
notify = require('gulp-notify'), notify = require('gulp-notify'),
...@@ -58,11 +60,12 @@ gulp.task('css', function() { ...@@ -58,11 +60,12 @@ gulp.task('css', function() {
'{{ package.sass.relative }}', '{{ package.sass.relative }}',
{% endif %} {% endif %}
{% endfor %} {% endfor %}
]}) ]})
.on("error", notify.onError(function (error) { .on("error", notify.onError(function (error) {
return "Error: " + error.message; return "Error: " + error.message;
}))) })))
.pipe(gulpif(options.env !== 'production', sourcemaps.write('./maps'))) .pipe(postcss([autoprefixer()]))
.pipe(gulpif(options.env !== 'production', sourcemaps.write('./maps')))
.pipe(gulp.dest(config.cssPath)); .pipe(gulp.dest(config.cssPath));
}); });
......
...@@ -4,13 +4,19 @@ ...@@ -4,13 +4,19 @@
"node": ">=4.2.0" "node": ">=4.2.0"
}, },
"dependencies": { "dependencies": {
"autoprefixer": "^7.1.1",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-if": "^2.0.0", "gulp-if": "^2.0.0",
"gulp-notify": "^2.2.0", "gulp-notify": "^2.2.0",
"gulp-postcss": "^7.0.0",
"gulp-sass": "^2.0.5", "gulp-sass": "^2.0.5",
"gulp-sourcemaps": "^1.6.0", "gulp-sourcemaps": "^1.6.0",
"minimist": "^1.2.0" "minimist": "^1.2.0"
}, },
"browserslist": [
"> 1%",
"last 2 versions"
],
"scripts": { "scripts": {
"postinstall": "find node_modules/ -name '*.info' -type f -delete" "postinstall": "find node_modules/ -name '*.info' -type f -delete"
} }
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
// Set the directory for the Bootstrap Glyphicon font. // Set the directory for the Bootstrap Glyphicon font.
$icon-font-path: '../fonts/bootstrap/'; $icon-font-path: '../fonts/bootstrap/';
{% endif %} {% endif %}
{% if bower_assets['flat-ui'] is defined %} {% if bower_assets['flat-ui-sass'] is defined %}
// Workaround for Flat-UI issue with node-sass: // Workaround for Flat-UI issue with node-sass:
// @see https://github.com/wingrunr21/flat-ui-sass/issues/39 // @see https://github.com/wingrunr21/flat-ui-sass/issues/39
@function tint($color, $percentage){ @function tint($color, $percentage){
@return mix(#fff, $color, $percentage) @return mix(#fff, $color, $percentage)
} }
{% if bower_assets['flat-ui'].fonts is defined %} {% if bower_assets['flat-ui-sass'].fonts is defined %}
// Set the directory for the Flat-UI Glyphicon font. // Set the directory for the Flat-UI Glyphicon font.
$icon-font-path: '../fonts/flat-ui'; $icon-font-path: '../fonts/flat-ui';
$icon-font-name: 'flat-ui-icons-regular'; $icon-font-name: 'flat-ui-icons-regular';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment