tsrpc-protocol-loader
v0.2.3
Published
Webpack loader for tsrpc-browser protocols
Downloads
4
Readme
Webpack loader for tsrpc-browser protocols
See TSRPC and TSRPC Browser Client
Usage
webpack.config.js
const path = require('path');
//protocol path
const protocolPath = path.resolve(__dirname, 'protocol');
module.exports = {
//...
module: {
rules: [
{
test: v => v.startsWith(protocolPath),
loader: 'tsrpc-protocol-loader',
options: {
protocolPath: protocolPath
}
}
]
},
//...
}