mirror of
https://github.com/penpot/penpot.git
synced 2025-04-06 12:01:19 -05:00
📎 Explicitly disable features on code
This commit is contained in:
parent
c1a1120137
commit
a4acdd1886
2 changed files with 6 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
|||
(when (= :browser @cf/target)
|
||||
(log/info :message "Welcome to penpot"
|
||||
:version (:full @cf/version)
|
||||
:asserts *assert*
|
||||
:build-date cf/build-date
|
||||
:public-uri (str @cf/public-uri)))
|
||||
|
||||
|
|
|
@ -65,11 +65,15 @@
|
|||
;; Read initial enabled features from config, if set
|
||||
(if-let [enabled-features @cfg/features]
|
||||
(doseq [f enabled-features]
|
||||
(js/console.log "enabled feature" (pr-str f))
|
||||
(toggle-feature! f))
|
||||
(when *assert*
|
||||
(when false
|
||||
;; By default, all features disabled, except in development
|
||||
;; environment, that are enabled except components-v2
|
||||
;; (js/console.log "!!! *assert*" *assert*)
|
||||
|
||||
(doseq [f features-list]
|
||||
(when (not= f :components-v2)
|
||||
;; (js/console.log "enabled feature" (pr-str f))
|
||||
(toggle-feature! f)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue