Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add webpack sample #337

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions samples/webpack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Typed Rest Client Webpack Sample

## Description

This is a basic example of using Typed Rest Client in a browser via `webpack`.

It uses `webpack 5` for build and run browser-ready bundle.

## Requirements

It requires `nodejs` >= `10.x` to run.

It is recommended to use `npm 8.x` to minimize friction between package-lock formatting.

## Usage

To run this sample, enter following commands at the command line:

```sh
npm i
npm run start
```
5 changes: 5 additions & 0 deletions samples/webpack/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-env"
]
}
KonstantinTyukalov marked this conversation as resolved.
Show resolved Hide resolved
Loading