Skip to content

Commit

Permalink
Hotwire preload.bundle.js to specific NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Feb 25, 2022
1 parent 163777f commit 5c9718f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const nodeDefaults = {

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

0 comments on commit 5c9718f

Please sign in to comment.