OK, Figwheel requires webroot under resources. Bother.

Bother.
This commit is contained in:
Simon Brooke 2020-10-20 14:34:26 +01:00
parent 26a60fb1fe
commit ec9a0803f4
11 changed files with 29 additions and 690 deletions

File diff suppressed because one or more lines are too long

24
index.html Normal file
View file

@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv="refresh" content="0; URL='resources/public/index.html'" />
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="resources/public/css/re-com.css">
<link rel="stylesheet" href="resources/public/css/swinging-needle-meter.css">
<link href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Roboto+Condensed:400,300" rel="stylesheet" type="text/css">
<title>Example swinging needle meter following re-com conventions.</title>
</head>
<body>
<div id="app">
<h1>
This isn't actually where you want to be.
</h1>
<p>
If you're seeing this, you probably want to <a href="resources/public/index.html">go here.</a>
</p>
</div>
</body>
</html>

View file

@ -14,9 +14,9 @@
:source-paths ["src/clj"]
:clean-targets ^{:protect false} ["docs/js/compiled" "target"]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
:figwheel {:css-dirs ["docs/css"]}
:figwheel {:css-dirs ["resources/public/css"]}
:profiles
{:dev
@ -29,8 +29,8 @@
:source-paths ["src/cljs"]
:figwheel {:on-jsload "swinging-needle-meter.core/mount-root"}
:compiler {:main swinging-needle-meter.core
:output-to "docs/js/compiled/app.js"
:output-dir "docs/js/compiled/out"
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:source-map-timestamp true
:preloads [devtools.preload]
@ -40,7 +40,7 @@
{:id "min"
:source-paths ["src/cljs"]
:compiler {:main swinging-needle-meter.core
:output-to "docs/js/compiled/app.js"
:output-to "resources/public/js/compiled/app.js"
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false}}]})

View file

@ -1 +0,0 @@
../../docs

View file

Before

Width:  |  Height:  |  Size: 646 B

After

Width:  |  Height:  |  Size: 646 B

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB