Custom Netlify configuration properties
8eecf0d2 opened this issue · 4 comments
In addition to #11, the Netlify configuration could also be used for other netlify-local options.
[plugins.local.webpack]
config = "webpack.js"
[plugins.local.server]
static = true
lambda = true
certificates = "private/certs"
port = 9000
[plugins.local.functions]
source = "src/lambda/ts"
files = [
"foo.js",
"nested/bar.js"
]This isn't as pretty as I'd like but I'm new to toml so maybe there's a better way to write this
A lot of this is already done. It just needs some documenting.
@jayvdb yeah, I was waiting for Netlify to provide guidance on modifying the netlify.toml with plugin stuff for a while but implemented most of this and recently merged in into master.
I have some docs in the wiki but will refactor to 3 or so pages like Options, Serve, Build.
The main thing which this is lacking, and quite a large feature, is the "auto" build where it would read functions.files and build with bare-minimum webpack config - probably just steal logic from 8eecf0d2/webpack-netlify-lambda-plugin to get started.