Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erroring on deprecated 'sort' function without sort option being called. #256

Open
andy-blum opened this issue Jul 11, 2019 · 0 comments
Open

Comments

@andy-blum
Copy link

andy-blum commented Jul 11, 2019

I'm really new to using node, so please forgive me if there's a pretty basic error.

when I run my scripts task (below) I get the following error:

Error in plugin "gulp-inject"
Message: Sort option is deprecated! Use `sort-stream` module instead!

I'm not attempting to use the sort option at all. Why is this error appearing?

var paths = {
  source: {
    jswrapper: 'src/js/wrapper.js',
    functions: 'src/js/functions/*.js',
    scripts: 'src/js/*.js'
  },
  dist: {
    scripts: 'dist/js'
  }
};


gulp.task('scripts', function () {
  var target = gulp.src(paths.source.jswrapper);
  var sources = gulp.src([paths.source.functions, paths.source.scripts]);
  var options = [
    {starttag: '/* inject:js */'},
    {endtag: '/* endinject */'}
  ]
  return scripts = target.pipe(inject(sources, options))
    .pipe(uglify().on('error', onError))
    .pipe(gulp.dest(paths.dist.scripts));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant