Skip to content

Commit

Permalink
Check if actually production
Browse files Browse the repository at this point in the history
  • Loading branch information
swlkr committed Mar 26, 2020
1 parent 68d5a36 commit 37a524a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/joy/html.janet
Expand Up @@ -153,7 +153,8 @@
(filter |(string/has-prefix? "bundle" $) ?)
(filter |(string/has-suffix? ext $) ?)
(get ? 0))]
(if (nil? bundle)
(if (and env/production?
(nil? bundle))
(printf "Warning: JOY_ENV is set to production but there was no bundled %s file. Run joy bundle to fix this." ext)
bundle)))

Expand Down

0 comments on commit 37a524a

Please sign in to comment.