From 1d58da4b88a7615590be1e8a1edefcb0459d29db Mon Sep 17 00:00:00 2001 From: Pedro Reis Date: Tue, 17 Apr 2018 12:31:33 +0100 Subject: [PATCH] Update gulpfile.babel.js --- gulpfile.babel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 82c9278..b8a0c05 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -130,8 +130,8 @@ gulp.task('scripts', (cb) => { if (config.scripts.length) { config.scripts.forEach((filePath) => { const formattedPath = filePath.replace(/^\/|\/$/g, ''); // remove leading forward slash - const entry = `${config.base.src}/${formattedPath}`; - const dest = `${config.base.public}/${formattedPath.replace('.js', '.min.js')}`; + const entry = `${config.base.src}/scripts/${formattedPath}`; + const dest = `${config.base.public}/js/${formattedPath.replace('.js', '.min.js')}`; // regex to remove duplicate forward slashes roll(entry.replace(/([^:]\/)\/+/g, '$1'), dest.replace(/([^:]\/)\/+/g, '$1')); });