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:
parent
ef816717fd
commit
f0b23d5abb
|
@ -23,6 +23,9 @@ const nodeDefaults = {
|
||||||
|
|
||||||
const bundleDefaults = {
|
const bundleDefaults = {
|
||||||
...nodeDefaults,
|
...nodeDefaults,
|
||||||
|
define: {
|
||||||
|
'process.env.NODE_ENV': isProd ? '"production"' : '"development"',
|
||||||
|
},
|
||||||
bundle: true,
|
bundle: true,
|
||||||
external: [
|
external: [
|
||||||
'@signalapp/signal-client',
|
'@signalapp/signal-client',
|
||||||
|
|
Loading…
Reference in New Issue