A webpack loader that compiles .proto files into gRPC-Web JavaScript client code during the build process, eliminating the need to manually install protoc or protoc-gen-grpc-web. Current stable version 0.1.8. Works with webpack 4/5. Key differentiator: fully automates proto compilation within webpack, supporting multiple proto paths and easy integration.
npm install webpack-grpc-web-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows webpack configuration for .proto files and how to use generated gRPC-Web client in JavaScript.
Ensure network connectivity or pre-install the binaries manually.
Set resolve.fullySpecified: false in webpack config.
Ensure your webpack output.library.type is compatible (e.g., 'commonjs2' or 'module').
Explicitly set protoPath in options.
Use unique service names or prefix/proto package.
Add resolve: { extensions: ['.proto'] } to webpack config.Run npm install grpc-web
Check the generated service name and method: use new Proto.ServiceNameClient(url, null, null) and call async client.method(request, metadata, callback).
No dependency data recorded yet.