Skip to content

Commit 0279114

Browse files
committed
Remove renaming toLower when copying the resource files in the gulp task
1 parent 4edf29e commit 0279114

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/Umbraco.Web.UI.Client/gulp/tasks/views.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var config = require('../config');
44
var gulp = require('gulp');
5-
var rename = require('gulp-rename');
65

76
var _ = require('lodash');
87
var MergeStream = require('merge-stream');
@@ -13,12 +12,7 @@ function views() {
1312

1413
_.forEach(config.sources.views, function (group) {
1514

16-
var task = gulp.src(group.files)
17-
.pipe(rename(function(path) {
18-
path.dirname = path.dirname.toLowerCase();
19-
path.basename = path.basename.toLowerCase();
20-
path.extname = path.extname.toLowerCase();
21-
}));
15+
var task = gulp.src(group.files);
2216

2317
_.forEach(config.roots, function(root){
2418
var destPath = root + config.targets.views + group.folder;

src/Umbraco.Web.UI.Client/gulp/tasks/watchTask.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const config = require('../config');
44
const {watch, series, parallel, dest, src} = require('gulp');
55

66
var _ = require('lodash');
7-
var rename = require('gulp-rename');
87
var MergeStream = require('merge-stream');
98

109
var processJs = require('../util/processJs');
@@ -37,12 +36,7 @@ function watchTask(cb) {
3736
viewWatcher = watch(group.files, { ignoreInitial: true, interval: watchInterval },
3837
parallel(
3938
function MoveViewsAndRegenerateJS() {
40-
var task = src(group.files)
41-
.pipe(rename(function(path) {
42-
path.dirname = path.dirname.toLowerCase();
43-
path.basename = path.basename.toLowerCase();
44-
path.extname = path.extname.toLowerCase();
45-
}));
39+
var task = src(group.files);
4640

4741
_.forEach(config.roots, function(root){
4842
var destPath = root + config.targets.views + group.folder;

0 commit comments

Comments
 (0)