File Not Loaded with gulp-concat

48 Views Asked by At

After gulp-concat, new concatenated js file is added in my project folder and then I start server but file is not loaded in the browser . Server responded with 404 .

Browser Console:

enter image description here

Browser Developer Tool's Application Tab

enter image description here

Gulp File

enter image description here

1

There are 1 best solutions below

4
Kieran On

.pipe(gulp.dest('views'))

It looks like you're saving the file to your views folder. If that's intentional you will have to load it from views/main.js.