mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -05:00
Disable namespace loading info in console from shadow-cljs
This commit is contained in:
parent
9b2993a344
commit
501256f16b
2 changed files with 12 additions and 2 deletions
7
frontend/dev/preload.cljs
Normal file
7
frontend/dev/preload.cljs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
(ns preload
|
||||||
|
(:require
|
||||||
|
[devtools.core :as devtools]))
|
||||||
|
|
||||||
|
;; Silence shadow-cljs devtools (ns reloading)
|
||||||
|
(devtools/set-pref! :dont-display-banner true)
|
||||||
|
(devtools/set-pref! :min-expandable-sequable-count-for-well-known-types 0)
|
|
@ -8,7 +8,9 @@
|
||||||
{:target :browser
|
{:target :browser
|
||||||
:output-dir "resources/public/js/"
|
:output-dir "resources/public/js/"
|
||||||
:asset-path "/js"
|
:asset-path "/js"
|
||||||
:devtools {:browser-inject :main
|
:devtools {:preloads [preload devtools.preload]
|
||||||
|
:log false
|
||||||
|
:browser-inject :main
|
||||||
:watch-dir "resources/public"
|
:watch-dir "resources/public"
|
||||||
:reload-strategy :full}
|
:reload-strategy :full}
|
||||||
:build-options {:manifest-name "manifest.json"}
|
:build-options {:manifest-name "manifest.json"}
|
||||||
|
@ -65,7 +67,8 @@
|
||||||
:compiler-options
|
:compiler-options
|
||||||
{:output-feature-set :es2020
|
{:output-feature-set :es2020
|
||||||
:output-wrapper false
|
:output-wrapper false
|
||||||
:warnings {:fn-deprecated false}}
|
:warnings {:fn-deprecated false}
|
||||||
|
:closure-defines {shadow.debug.LogLevel :warning}}
|
||||||
|
|
||||||
:release
|
:release
|
||||||
{:closure-defines {goog.DEBUG false
|
{:closure-defines {goog.DEBUG false
|
||||||
|
|
Loading…
Add table
Reference in a new issue