@thheller I started using shadow-css on an existing project, trying to migrate from tailwind to it (tailwind just breaks stuff too often for no good reason). I am slowly adding more aliases, but currently if I use an alias and it doesn't exist there is no warning or error. Is there an easy place to slot in some optional warnings if aliases are used but don't exist?
they should be printen, if you are using a build setup such as the one from the README
(defn css-release [& args]
(let [build-state
(-> (cb/start)
(cb/index-path (io/file "src" "main") {})
(cb/generate
'{:ui
{:entries []}})
(cb/minify)
(cb/write-outputs-to (io/file "public" "css")))]
(doseq [mod (:outputs build-state)
{:keys [warning-type] :as warning} (:warnings mod)]
(prn [:CSS (name warning-type) (dissoc warning :warning-type)])))) you can adjust this to whatever you need
oh just noticed that is a bit outdated, switch (:outputs build-state) to (vals (:chunks build-state))
its ugly but better than nothing 😛
Aha yes, that's perfect. I even already had it in my build css, but it wasn't working because it was using :outputs 🙂