This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-09
Channels
- # beginners (20)
- # boot (4)
- # cider (2)
- # cljs-dev (25)
- # clojure (45)
- # clojure-dev (1)
- # clojure-greece (5)
- # clojure-italy (20)
- # clojure-nl (12)
- # clojure-russia (11)
- # clojure-uk (256)
- # clojurescript (176)
- # data-science (33)
- # datomic (47)
- # docs (1)
- # duct (13)
- # fulcro (54)
- # graphql (24)
- # hoplon (3)
- # jobs (1)
- # leiningen (32)
- # luminus (3)
- # midje (1)
- # mount (2)
- # off-topic (3)
- # onyx (5)
- # overtone (1)
- # parinfer (12)
- # pedestal (4)
- # re-frame (60)
- # reagent (11)
- # reitit (3)
- # ring-swagger (21)
- # rum (1)
- # shadow-cljs (16)
- # spacemacs (23)
- # tools-deps (19)
- # vim (79)
Not 100% sure where to ask this, but is there a sane way to package/distribute CSS as a maven dependency?
@shen getting CSS into a jar is the same as putting anything else in it, e.g. putting it in resources
etc
feels like we want something that copies the css from a dependency to an accessible location
So if I bring in a lib and it has some css file in the jar with path called some-project-path/some-project.css
You can make it a file, e.g. some-project-import.scss
/* NOTE: Any changes to this file needs to have a subsequent run of `lein sass4clj once` */
@import "some-project-path/some-project";
I typically just do the lein sass4clj
manually, but if you upgrade the dep, you’d need to recreate - you could automate it more in the project.clj
as a preprocess step if you wanted it to happen more often/on-demand or whatever
there is also https://github.com/Deraen/less4clj
I guess you could also do something different, like put the css up on a cdn somewhere
I just run the lein sass4clj
when a change happens to that dep, I check in the source to source control