I would like use gulp-useref for concant js files in same order as in index.html.
Solution has this structure:
- Solution Folder
- App Folder
- Services Folder
- service.js
- Services Folder
- Scripts Folder
- angular.js
- App Folder
index.html
<script src = "scripts/angular.js"></script>
<script src = "app/services/service.js"></script>
Gulp
gulp.src("index.html")
.pipe(useref())
.pipe(gulpif('*.js', uglify()))
.pipe(concant("app.js"))
.pipe(gulp.dest(config.dist + "/app"));
When I run this gulp task app.js file is created but contains content of index.html.
What I do wrong?