roganjoshua

roganjoshua

Tailwind different in dev then when deployed

I am having some issues here deploying and I am not sure if this is a bug.

I have a separate css

div.home {
    @apply w-full; 

    div.layout {
        @apply grid grid-cols-1 justify-items-center w-full;
        > div {
            @apply justify-items-center w-full;
        }
        .head {
        }
        .intro {
            > div {
                @apply text-sm m-auto w-4/5 italic text-justify border-l-4 border-r-4 p-3;
            }
        }
        .blurb {
            > div {
                @apply md:w-3/4 flex flex-wrap flex-1 justify-evenly m-auto p-3;
            }
            > div > div {
                @apply prose prose-stone md:w-1/2 text-sm;
            }
        }
        .postage {
            @apply p-3;
            .header {
                @apply w-full m-auto md:w-3/4;
                > div {
                    @apply text-center m-2 border-t-4 border-b-4 w-full;
                    > span {
                        @apply prose prose-stone;
                    }
                }
            }
            .items {
                @apply w-full m-auto flex flex-wrap justify-evenly md:w-3/4;
                > div {
                    @apply md:flex-grow md:basis-1/3;
                    > div {
                        @apply prose prose-stone text-sm p-2;
                        .heading {
                            @apply prose border-b-2;
                        }
                    }
                }
            }
        }
        .gradings {
            @apply p-3;
            .header {
                @apply w-full m-auto md:w-3/4;
                > div {
                    @apply text-center m-2 border-t-4 border-b-4 w-full;
                    > span {
                        @apply prose prose-stone;
                    }
                }
            }
            .items {
                @apply flex flex-wrap justify-evenly m-auto md:w-3/4;
                > div {
                    @apply md:flex-grow md:basis-1/2 p-2;
                    .heading {
                        @apply prose prose-stone uppercase border-b-2;
                    }
                }
            }
        }
    }
}

This seems to work fine in development

but not when I deploy to fly.

Tailwindcss and Tailwindcss/Typography all looks good but I think my css is not being processed as it should for production.

Is this a bug?

First Post!

roganjoshua

roganjoshua

My css is not being exported in production

Last Post!

kevinschweikert

kevinschweikert

Did you import the css file into app.js so that it gets bundled by esbuild?

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

We're in Beta

About us Mission Statement