Hotwire preload.bundle.js to specific NODE_ENV

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-02-25 13:02:37 -08:00 committed by GitHub
parent ef816717fd
commit f0b23d5abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ const nodeDefaults = {
const bundleDefaults = {
...nodeDefaults,
define: {
'process.env.NODE_ENV': isProd ? '"production"' : '"development"',
},
bundle: true,
external: [
'@signalapp/signal-client',