We're updating the issue view to help you get more done. 

Invalid asset-path on Windows

Description

My app.js had the following in it:

1 2 3 4 5 6 7 8 document.write('<script src="target\public\cljs-out\common/goog/deps.js"></script>'); document.write('<script src="target\public\cljs-out\common/cljs_deps.js"></script>'); document.write('<script>if (typeof goog == "undefined") console.warn("ClojureScript could not load :main, did you forget to specify :asset-path?");</script>'); document.write('<script>goog.require("figwheel.core");</script>'); document.write('<script>goog.require("figwheel.main");</script>'); document.write('<script>goog.require("figwheel.repl.preload");</script>'); document.write('<script>goog.require("devtools.preload");</script>'); document.write('<script>goog.require("figwheel.main.css_reload");</script>');

the .cljs.edn file had the following setting: :output-dir "target\\public\\cljs-out
common" (this is on Windows)

https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L1661

The path elements should be converted from \ to / as part of this assignment.

Environment

Windows 10

Status

Assignee

Unassigned

Reporter

Alex Miller

Labels

None

Approval

None

Patch

None

Priority

Major