Skip to content

Commit a609538

Browse files
committed
removing some unused changed checks and array access
1 parent 8968113 commit a609538

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/htdocs/img/gv/
55
/htdocs/login/css/
66
/src/img/gv/
7-
/src/less/iconfont
7+
/src/less/fonts
88
/tests/test-forms/err.log
99
/tests/tests.log
1010
/tests/tests.html

gulpfile.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ watchFilesFor.iconfont = [
234234
gulp.task('iconfont', function(){
235235
var fontName = 'iconfont';
236236
var destDirFont = path.join(destDir, 'css', 'fonts');
237-
gulp.src(watchFilesFor.iconfont[0])
238-
.pipe(changed(destDirFont, {transformPath: destDirFont => path.join(path.dirname(destDirFont), fontName + '.ttf')}))
237+
gulp.src(watchFilesFor.iconfont)
239238
.pipe(iconfontCss({
240239
fontName: fontName,
241240
path: path.join(srcDir, 'iconfont', 'template.less'),
@@ -269,8 +268,7 @@ watchFilesFor['iconfont-preview'] = [
269268
gulp.task('iconfont-preview', function(){
270269
var fontName = 'iconfont';
271270
var destDirFont = path.join(destDir, 'css', 'fonts');
272-
gulp.src(watchFilesFor['iconfont-preview'][0])
273-
.pipe(changed(destDirFont, {transformPath: destDirFont => path.join(path.dirname(destDirFont), fontName + '.html')}))
271+
gulp.src(watchFilesFor['iconfont-preview'])
274272
.pipe(iconfontCss({
275273
fontName: fontName,
276274
path: path.join(srcDir, 'iconfont', 'template.css'),

0 commit comments

Comments
 (0)