Hotwire preload.bundle.js to specific NODE_ENV

This commit is contained in:
Fedor Indutny 2022-02-25 12:36:42 -08:00 committed by GitHub
parent 163777f751
commit 5c9718f268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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',