diff --git a/apps/dashboard/app/views/active_jobs/index.html.erb b/apps/dashboard/app/views/active_jobs/index.html.erb index 5264bec5f..72490ccec 100644 --- a/apps/dashboard/app/views/active_jobs/index.html.erb +++ b/apps/dashboard/app/views/active_jobs/index.html.erb @@ -68,4 +68,4 @@ > -<%= javascript_include_tag 'active_jobs', nonce: true %> \ No newline at end of file +<%= javascript_include_tag 'active_jobs', nonce: true, type: 'module' %> diff --git a/apps/dashboard/esbuild.config.js b/apps/dashboard/esbuild.config.js index a216f79fb..bd7b626b6 100644 --- a/apps/dashboard/esbuild.config.js +++ b/apps/dashboard/esbuild.config.js @@ -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);