Remove renaming toLower when copying the resource files in the gulp task
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
var config = require('../config');
|
||||
var gulp = require('gulp');
|
||||
var rename = require('gulp-rename');
|
||||
|
||||
var _ = require('lodash');
|
||||
var MergeStream = require('merge-stream');
|
||||
@@ -13,12 +12,7 @@ function views() {
|
||||
|
||||
_.forEach(config.sources.views, function (group) {
|
||||
|
||||
var task = gulp.src(group.files)
|
||||
.pipe(rename(function(path) {
|
||||
path.dirname = path.dirname.toLowerCase();
|
||||
path.basename = path.basename.toLowerCase();
|
||||
path.extname = path.extname.toLowerCase();
|
||||
}));
|
||||
var task = gulp.src(group.files);
|
||||
|
||||
_.forEach(config.roots, function(root){
|
||||
var destPath = root + config.targets.views + group.folder;
|
||||
|
||||
@@ -4,7 +4,6 @@ const config = require('../config');
|
||||
const {watch, series, parallel, dest, src} = require('gulp');
|
||||
|
||||
var _ = require('lodash');
|
||||
var rename = require('gulp-rename');
|
||||
var MergeStream = require('merge-stream');
|
||||
|
||||
var processJs = require('../util/processJs');
|
||||
@@ -37,12 +36,7 @@ function watchTask(cb) {
|
||||
viewWatcher = watch(group.files, { ignoreInitial: true, interval: watchInterval },
|
||||
parallel(
|
||||
function MoveViewsAndRegenerateJS() {
|
||||
var task = src(group.files)
|
||||
.pipe(rename(function(path) {
|
||||
path.dirname = path.dirname.toLowerCase();
|
||||
path.basename = path.basename.toLowerCase();
|
||||
path.extname = path.extname.toLowerCase();
|
||||
}));
|
||||
var task = src(group.files);
|
||||
|
||||
_.forEach(config.roots, function(root){
|
||||
var destPath = root + config.targets.views + group.folder;
|
||||
|
||||
Reference in New Issue
Block a user