Hotwire preload.bundle.js to specific NODE_ENV
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user