fengari-lua / fengari-web

Provides everything you need to run Fengari in the browser.
MIT License
250 stars 19 forks source link

Set FENGARICONF / lauconf for fengari-web #51

Closed lorenzos closed 2 years ago

lorenzos commented 2 years ago

Is it possible to set FENGARICONF (and so lauconf) when using fengari-web? I see that process.env.FENGARICONF is forcefully set to void in webpack.config.js, and in fact I wasn't able to set conf value by changing process.env when compiling my project, which has fengari-web as a dependency.

daurnimator commented 2 years ago

FENGARICONF should be thought of as a "compiletime" option; the distributed pre-compiled fengari-web has it hard-coded; but if you compile fengari-web yourself then you can modify it.

daurnimator commented 2 years ago

Closing as there are no action items here.