Skip to content

Commit

Permalink
Module active jobs (#3957)
Browse files Browse the repository at this point in the history
import active_jobs js as a module and add the ability to minify js in dev environment.
  • Loading branch information
johrstrom authored Nov 18, 2024
1 parent 0fe6743 commit 4f7a643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/app/views/active_jobs/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
>
</div>

<%= javascript_include_tag 'active_jobs', nonce: true %>
<%= javascript_include_tag 'active_jobs', nonce: true, type: 'module' %>
2 changes: 1 addition & 1 deletion apps/dashboard/esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ esbuild.build({
outdir: buildDir,
external: ['fs'],
plugins: [prepPlugin, minifiedSrcResolvePlugin],
minify: process.env.RAILS_ENV == 'production' ? true : false,
minify: process.env.RAILS_ENV == 'production' || process.env.MINIFY == 'false' ? true : false,
}).catch((e) => {
console.error(e.message);
process.exit(1);
Expand Down

0 comments on commit 4f7a643

Please sign in to comment.