The above named() stream will add a .named property to the vinyl files passing through. The webpack() stream will read those as entry points and even group entry points with common names together.
Source Maps
Source maps are built into webpack, specify a devtool:
Now the appropriate .map files will be emitted. Or set to inline-source-map
to inline the source maps into the files.
If you need further special handling of source maps, such as using with
gulp-sourcemaps then just pipe
to a stream and handle the source map files emitted by webpack:
Please check the commit log in the future for release history.
4.0.0 - Update webpack to ^3.4.1. Update memory-fs and vinyl dependencies. Emit compilation-error instead of error when watching (@jeroennoten). Fix error when compiler throws an error (@renminghao). Fix error when stats is undefined (@Simek).
3.2.0 - Ability to use multiple compilers (@saschagehlich).
3.1.0 - Better error output (@hi-q).
3.0.1 - Fix fonts being passed through streams (@mattlewis92).
3.0.0 - Remove special handling of source maps. Update dependencies.
2.3.0 - Emit stats.compilation.errors as error (@JakeChampion).
2.2.0 - Add support for source maps (@OliverJAsh).
2.1.0 - Avoid modifying options by reference (@shinuza). Replace log with correct package name (@vinnymac).
2.0.0 - Rename to webpack-stream and now it's totally not a gulp plugin.
1.5.0 - Update webpack to 1.9.x (@nmccready). Update other dependencies.
1.4.0 - Update webpack to 1.8.x (@Zolmeister).
1.3.2 - Fix another place with ? in name (@raphaelluchini).
1.3.1 - Fix for paths with ? in their name (@raphaelluchini).
1.1.2 - Fixes to default stats for logging (@mdreizin).
1.1.1 - Add additional stats to default logging (@mdreizin).
1.1.0 - Exposes internal webpack if asked via require('webpack-stream').webpack
1.0.0 - Support named chunks pipe'd in for multiple entry points.
0.4.1 - Fixed regression for multiple entry point support.
0.4.0 - Display an error message if there are no input files (@3onyc). Add message on why task is not finishing, Add ability to track compilation progress, Add ability to configure stats output via options (@kompot). Bump webpack version (@koistya).
License
Copyright (c) 2021 Kyle Robinson Young
Licensed under the MIT license.