Closed sixclones closed 4 years ago
It can generate multiple output files with the vinyl-named package.
I think a call similar to this should work for you.
const named = require('vinyl-named');
...
const task = () => {
return gulp.src('js/*.js')
.pipe(named())
.pipe(webpack())
.pipe(gulp.dest('build/'))
};
Yep I figured out this later and forgot to close the issue.
Hello,
It seams that webpack-stream can't generate a different file for each source file. What I want is to have entries points defined by
gulp.src('**/*.js')
and for each of those files having an outputed file.Currently webpack-stream generated only one script. So my question is: does webpack-stream can handle this?
Thx