Update README

This commit is contained in:
Roj Serbest 2021-10-18 18:59:16 +03:00
parent 2143f1bf4b
commit 77648fdb22
1 changed files with 18 additions and 0 deletions

View File

@ -35,6 +35,24 @@ npm run bundle:deno
npm run build
```
## Usage with Next.js
SocialvoidJS can be used with Next.js, with the following configuration:
```bash
{
webpack: (config) => {
if (typeof config.resolve.fallback !== "undefined") {
config.resolve.fallback.fs = false;
}
return config;
},
}
```
React.js support is untested, but should work if you can configure Webpack like mentioned in above.
## Examples
See [`examples/`](./examples).