commit
64f229d601
12
gulpfile.js
12
gulpfile.js
|
@ -96,6 +96,9 @@ gulp.task('styles:dev', ['fonts'], function () {
|
|||
precision: 10,
|
||||
onError: console.error.bind(console, 'Sass error:')
|
||||
}))
|
||||
.pipe($.base64({
|
||||
extensionsAllowed: ['.svg'],
|
||||
}))
|
||||
.pipe($.autoprefixer(AUTOPREFIXER_BROWSERS))
|
||||
.pipe(gulp.dest('.tmp/styles'))
|
||||
.pipe($.size({title: 'styles'}));
|
||||
|
@ -113,6 +116,9 @@ gulp.task('styletemplates', function () {
|
|||
precision: 10,
|
||||
onError: console.error.bind(console, 'Sass error:')
|
||||
}))
|
||||
.pipe($.base64({
|
||||
extensionsAllowed: ['.svg'],
|
||||
}))
|
||||
.pipe($.autoprefixer(AUTOPREFIXER_BROWSERS))
|
||||
.pipe(gulp.dest('.tmp'))
|
||||
// Concatenate Styles
|
||||
|
@ -139,6 +145,9 @@ gulp.task('styles', ['styletemplates'], function () {
|
|||
precision: 10,
|
||||
onError: console.error.bind(console, 'Sass error:')
|
||||
}))
|
||||
.pipe($.base64({
|
||||
extensionsAllowed: ['.svg'],
|
||||
}))
|
||||
.pipe($.autoprefixer(AUTOPREFIXER_BROWSERS))
|
||||
.pipe(gulp.dest('.tmp'))
|
||||
// Concatenate Styles
|
||||
|
@ -311,6 +320,9 @@ gulp.task('demos', function () {
|
|||
precision: 10,
|
||||
onError: console.error.bind(console, 'Sass error:')
|
||||
})))
|
||||
.pipe($.base64({
|
||||
extensionsAllowed: ['.svg'],
|
||||
}))
|
||||
.pipe($.if('*.css', $.autoprefixer(AUTOPREFIXER_BROWSERS)))
|
||||
.pipe(gulp.dest('docs/out/components'));
|
||||
});
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
"del": "^1.1.1",
|
||||
"gulp": "^3.8.11",
|
||||
"gulp-autoprefixer": "^2.0.0",
|
||||
"gulp-base64": "^0.1.2",
|
||||
"gulp-cache": "^0.2.6",
|
||||
"gulp-changed": "^1.0.0",
|
||||
"gulp-concat": "^2.4.1",
|
||||
|
|
Loading…
Reference in New Issue