Skip to content

Commit

Permalink
Merge pull request #54 from Arjen-Smit/dynamic-inline-image-folder
Browse files Browse the repository at this point in the history
make destination of inline images configurable
  • Loading branch information
Arjen-Smit authored Dec 22, 2017
2 parents 78c8781 + b61c8c7 commit c69edd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connectholland-gulp-tasks",
"version": "4.0.0",
"version": "4.1.0",
"description": "A collection of tasks to load by gulp",
"main": "tasks/default.js",
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion tasks/inline-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module.exports = function(gulp, config) {
var addSrc = require('gulp-add-src');
var concat = require('gulp-concat');

var dest = config['inline-images'].dest || './style/generated';

return gulp.src(config['inline-images'].src)
// Create the data uris of the images
.pipe(imageDataUri({
Expand All @@ -22,6 +24,6 @@ module.exports = function(gulp, config) {
.pipe(addSrc.append(__dirname + '/inline-images/_inline-images-append.scss'))
// Output to generated scss file
.pipe(concat('_inline-images.scss'))
.pipe(gulp.dest('./style/generated'));
.pipe(gulp.dest(dest));
};
};

0 comments on commit c69edd1

Please sign in to comment.