Skip to content

Commit

Permalink
use last-index-of to get file exts so css catches .min.css
Browse files Browse the repository at this point in the history
  • Loading branch information
thheller committed Apr 29, 2018
1 parent 7dc90cc commit af5e382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/shadow/cljs/devtools/server/fs_watch_hawk.clj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
(subs abs-name root-prefix-len)

ext
(when-let [x (str/index-of name ".")]
(when-let [x (str/last-index-of name ".")]
(subs name (inc x)))]

(when (contains? file-exts ext)
Expand Down
2 changes: 1 addition & 1 deletion src/main/shadow/cljs/devtools/server/fs_watch_jvm.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(map (fn [[name event]]
{:dir dir
:name name
:ext (when-let [x (str/index-of name ".")]
:ext (when-let [x (str/last-index-of name ".")]
(subs name (inc x)))
:file (io/file dir name)
:event event}))
Expand Down

0 comments on commit af5e382

Please sign in to comment.