Adjusting gulpfile to support building on windows

This commit is contained in:
Jeff Avallone 2016-04-21 17:06:26 -04:00
parent 933c7b16f8
commit 9add3984d6

View File

@ -72,7 +72,7 @@ gulp.task('markup', 'Build markup into ./build directory.', function() {
helpers: config.globs.helpers, helpers: config.globs.helpers,
partials: config.globs.partials, partials: config.globs.partials,
parsePartialName: function(option, file) { parsePartialName: function(option, file) {
return _.last(file.path.split('/')).replace('.hbs', ''); return _.last(file.path.split(/\\|\//)).replace('.hbs', '');
}, },
bustCache: true bustCache: true
})) }))