Skip to content

Commit

Permalink
Add webpack sample (#337)
Browse files Browse the repository at this point in the history
* Add webpack sample

* Add note about recommended npm version
  • Loading branch information
KonstantinTyukalov authored Jul 27, 2022
1 parent 6d7db3b commit 90547af
Show file tree
Hide file tree
Showing 9 changed files with 12,495 additions and 0 deletions.
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"
]
}
Loading

0 comments on commit 90547af

Please sign in to comment.