-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
30 lines (25 loc) · 904 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var gulp = require('gulp'),
$ = require('gulp-load-plugins')()
gulp.task('default', ['skin-minify', 'copy-vendor'])
gulp.task('skin-minify', function () {
return gulp.src(['assets/ckeditor/skins/xe-minimalist/src/*.css', '!**/_*.css'])
.pipe($.cleanCss({compatibility: 'ie9', inline: ['local']}))
.pipe(gulp.dest('assets/ckeditor/skins/xe-minimalist'))
})
gulp.task('assets:common', function () {
return gulp.src(['assets/css/src/*.scss', '!**/_*.scss'])
.pipe($.sass({
outputStyle: 'compressed'
}))
.pipe(gulp.dest('assets/css'))
})
gulp.task('watch', function () {
gulp.watch('**/*.scss', ['assets:common'])
})
gulp.task('copy-vendor', function () {
return gulp.src([
'./node_modules/cropper/dist/cropper.min.js',
'./node_modules/cropper/dist/cropper.min.css'
])
.pipe(gulp.dest('components/EditorTools/ImageResizeTool/assets/vendor/cropper'))
})