https://github.com/k8w/tsrpc-protocol-loader
Webpack loader for tsrpc-browser
https://github.com/k8w/tsrpc-protocol-loader
Last synced: about 2 months ago
JSON representation
Webpack loader for tsrpc-browser
- Host: GitHub
- URL: https://github.com/k8w/tsrpc-protocol-loader
- Owner: k8w
- License: apache-2.0
- Created: 2017-10-13T03:18:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T03:46:05.000Z (almost 8 years ago)
- Last Synced: 2025-08-04T23:37:37.070Z (2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Webpack loader for tsrpc-browser protocols
===See [TSRPC](https://github.com/tsrpc) and [TSRPC Browser Client](https://github.com/tsrpc-browser)
### Usage
webpack.config.js
```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
}
}
]
},
//...
}
```