Commit 016eb714 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] make autoprefixer configurable

parent 397854ef
......@@ -113,6 +113,22 @@ module.exports = yeoman.generators.Base.extend((function() {
done();
});
}
},
configPrompts: function() {
if (answers.projectType !== 'extbaseExtension') {
var done = this.async();
this.prompt([
{
type: 'input',
name: 'autoprefixerBrowserSelection',
message: 'Please provide the configuration strings for autoprefixer',
default: '\'last 1 version\', \'> 1%\', \'ie 8\', \'ie 7\''
}
], function(_answers) {
answers = _.extend(answers, _answers);
done();
});
}
}
};
......
......@@ -17,7 +17,7 @@ gulp.task('css', function() {
sass: settings.path.sass
}))
.pipe(cssImport())
.pipe(autoprefixer())
.pipe(autoprefixer(<%= autoprefixerBrowserSelection %>))
.pipe(minifyCss())
.pipe(gulp.dest(settings.path.css));
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment