We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d3e1c commit 94a4dceCopy full SHA for 94a4dce
config/initializers/assets.rb
@@ -5,3 +5,24 @@
5
6
# Add additional assets to the asset load path.
7
# Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+# Use relative standalone bun binary when running the assets:precompile task
10
+module Jsbundling
11
+ module Tasks
12
+ def install_command
13
+ "./bun install"
14
+ end
15
16
+ def build_command
17
+ "./bun run build"
18
19
20
+end
21
22
+# Fix uglifier error looking for bun system-wide
23
+ExecJS::Runtimes::Bun = ExecJS::ExternalRuntime.new(
24
+ name: "Bun.sh",
25
+ command: [ "./bun" ],
26
+ runner_path: ExecJS.root + "/support/bun_runner.js",
27
+ encoding: "UTF-8"
28
+)
0 commit comments