Question: is anyone using elm-css with webpack?

Asked By
littlestudent
Asked At
2018-05-07 16:46:07

Found 15 possible answers.

User Answered At Possible Answer
alvivi 2018-05-07 18:57:18 yep
sporto 2018-05-08 00:51:40 yes
littlestudent 2018-05-08 07:37:14 any hints on how to best do this? by now i am not even sure if i need to run a separate step or not :thinking_face: to be honest, i am having a harder time to use elm-css than i thought compatible with the latest elm-css version?
peacememories 2018-05-08 08:02:48 Can you elaborate? :) right now elm-css should “just work” with Webpack and render its css at runtime
littlestudent 2018-05-08 08:49:31 yeah i managed to get that into my head now for some reason (maybe because it was not like this previously) i had a very hard time understanding this
mfeineis 2018-05-08 16:44:07 you don't even need webpack, so if it doesn't work with webpack I always try elm-make --output=dist/app.js after that works it has to be webpack :smile:
sporto 2018-05-09 03:55:12 We load and use elm-css like any other elm module. Webpack does its own thing. What issue are you having?
littlestudent 2018-05-10 09:37:27 yeah i understood it finally :slightly_smiling_face: :thumbsup: everything happening at runtime, so no special treatment for elm-css
azer 2018-05-11 12:35:21 Do you guys have example of using List and Style together ?
slackbot 2018-05-11 12:35:21 Terms like _guys_ can make people feel like they're being left out! :scream: Let _everyone_ and all the _folks_ know you're talking to them! :hearts: :robot_face:
azer 2018-05-11 13:03:12 I figured out Css.batch is what I was looking for :slightly_smiling_face:
joshuhornby 2018-05-11 13:20:26 Just seeing if anyone has an answer to this https://elmlang.slack.com/archives/C0HJVT881/p1525251821000049
tolgapaksoy 2018-05-11 13:21:44 @joshuhornby i know its really dirty, but can’t you make the title include an !important for that margin?
joshuhornby 2018-05-11 13:22:27 guess I could add an !important on the css [margin (px 20)] but feels very hacky wondering if the package knew how to handle them, maybe I should open an issue?
tolgapaksoy 2018-05-11 13:27:38 yeah. So to be clear: this is an issue of the order in which something gets inserted into the style tag? I think its worthy of a Github issue. I have no idea how I would solve this, and can’t quite find anything quickly looking around in the docs.

Related Questions