0

I'm not sure if I'm correct or not but it seems that my gulp setup automatically creates a vendor.JS with all the dependencies I have in my bower.JSON and an app.JS with all th JS files i have on my project.

Both files are also uglified.

Is there a way to prevent that behavior and just get all the JS files injected in the index.HTML ?

Guillaume
  • 59
  • 6

1 Answers1

0

First. If you want to set order of downloading scripts, you can use gulp-rigger.

After installing it you can create main.js file and set there:

//= path/to/script1.js
//= path/to/script2.js
...
//= path/to/scriptN.js

Next just uglify only this file.

Second. If you want to exclude files from gulp task processing, you can use next:

gulp.src(["/your_scripts_dir", "!your_scripts_js/*.min.js"]).
    .pipe(...)
    ...

See also this answer https://stackoverflow.com/a/24648667/5397119

Community
  • 1
  • 1
Sergio Ivanuzzo
  • 1,820
  • 4
  • 29
  • 59