tsrpc-protocol-loader

0.2.3 • Public • Published

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
                }
            }
        ]
    },
    //...
}

Readme

Keywords

Package Sidebar

Install

npm i tsrpc-protocol-loader

Weekly Downloads

10

Version

0.2.3

License

Apache-2.0

Last publish

Collaborators

  • k8w