@nerolang/webpack-dynamic-proxy
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@nerolang/webpack-dynamic-proxy

Dynamic Proxy for Webpack.

Install

pnpm add @nerolang/webpack-dynamic-proxy -D

How to use?

const { createDynamicProxy } = require('@nerolang/webpack-dynamic-proxy');

module.export = {
    devServer: {
        proxy: createDynamicProxy()
    }
};

proxy.config.js

module.exports = [
    {
        context: ['/api'],
        target: "http://example.com",
        changeOrigin: true
    }
];

Readme

Keywords

none

Package Sidebar

Install

npm i @nerolang/webpack-dynamic-proxy

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.59 kB

Total Files

4

Last publish

Collaborators

  • cat1989