Skip to content

Commit 0372683

Browse files
authored
add community approaches to readme
1 parent 7ba65eb commit 0372683

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,30 @@ The serving port can be changed with the `-p`/`--port` option.
6767

6868
By default the webpack configuration uses `babel-loader` to load all js files. Any `.babelrc` in the directory `netlify-lambda` is run from will be respected. If no `.babelrc` is found, a [few basic settings are used](https://github.com/netlify/netlify-lambda/blob/master/lib/build.js#L11-L15a).
6969

70-
If you need to use additional webpack modules or loaders, you can specify an additional webpack config with the `-c`/`--config` option when running either `serve` or `build`.
70+
If you need to use additional webpack modules or loaders, you can specify an additional webpack config with the `-c`/`--config` option when running either `serve` or `build`. See this issue for an example of [how to write a webpack override file](https://github.com/netlify/netlify-lambda/issues/64).
7171

7272
The additional webpack config will be merged into the default config via [webpack-merge's](https://www.npmjs.com/package/webpack-merge) `merge.smart` method.
7373

7474
### babel configuration
7575

7676
The default webpack configuration uses `babel-loader` with a [few basic settings](https://github.com/netlify/netlify-lambda/blob/master/lib/build.js#L19-L33).
7777

78-
However, if any `.babelrc` is found in the directory `netlify-lambda` is run from, it will be used instead of the default one.
78+
However, if any `.babelrc` is found in the directory `netlify-lambda` is run from, it will be used instead of the default one. If you need to run different babel versions for your lambda and for your app, [check this issue](https://github.com/netlify/netlify-lambda/issues/34) to override your webpack babel-loader.
7979

8080
### --static option
8181

8282
If you need an escape hatch and are building your lambda in some way that is incompatible with our build process, you can skip the build with the `-s` or `--static` flag. [More info here](https://github.com/netlify/netlify-lambda/pull/62).
8383

84+
## Other community approaches
85+
86+
If you wish to serve the full website from lambda, [check this issue](https://github.com/netlify/netlify-lambda/issues/36).
87+
88+
If you wish to run this server for testing, [check this issue](https://github.com/netlify/netlify-lambda/issues/49).
89+
90+
If you wish to emulate more Netlify functionality locally, [check this repo](https://github.com/8eecf0d2/netlify-local)
91+
92+
All of the above are community maintained and not officially supported by Netlify.
93+
8494
## License
8595

8696
[MIT](LICENSE)

0 commit comments

Comments
 (0)