Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with multiple entrypoints #46

Open
Gerben321 opened this issue Feb 15, 2024 · 8 comments
Open

Working with multiple entrypoints #46

Gerben321 opened this issue Feb 15, 2024 · 8 comments

Comments

@Gerben321
Copy link

Gerben321 commented Feb 15, 2024

Hey,

I wanted to try out assetmapper and had to use this bundle. I couldn't understand why my error entrypoint (used for testing) didn't get any styling. I tried my main entrypoint (app.js and app.css) and that works fine.

So how do I get my other entrypoints working? I tried this config:
symfonycasts_tailwind: input_css: 'assets/styles/error.css'
But that breaks my normal entrypoint. I want to keep my stuff separated, thanks.

@Gerben321
Copy link
Author

Any solution? Sadly asset mapper is no working solution for me now.

@bocharsky-bw
Copy link
Member

Hey @Gerben321 ,

Unfortunately, input_css is a scalar node so you can set it only to a single path, it does not support array of input css files. I suppose you're looking for something like:

symfonycasts_tailwind:
    input_css:
        - 'assets/styles/other.css'
        - 'assets/styles/error.css'

Do you want to give it a try to implement this feature?

@Gerben321
Copy link
Author

That's exactly what I'm looking for yes. For now I've moved further away from Asset mapper with many Symfony UX features that are very experimental with Asset mapper, or don't work. So I'm not sure if I will try it again. But I could give it a shot if I got some time left with a blank project.

@kevincerro
Copy link

I'm having the same issue

I have 2 entrypoints, app and status

Tailwind works when using app entrypoint, but not when using status

@kevincerro
Copy link

I'm having the same issue

I have 2 entrypoints, app and status

Tailwind works when using app entrypoint, but not when using status

Finally we migrated to webpack encore bundle while this is improved.
We need multiple entrypoints

@adeys
Copy link

adeys commented Jun 3, 2024

Hey @Gerben321 ,

Unfortunately, input_css is a scalar node so you can set it only to a single path, it does not support array of input css files. I suppose you're looking for something like:

symfonycasts_tailwind:
    input_css:
        - 'assets/styles/other.css'
        - 'assets/styles/error.css'

Do you want to give it a try to implement this feature?

Hello @bocharsky-bw.
Can we still propose an implementation for this ?

@bocharsky-bw
Copy link
Member

Hey! If users need this feature - I'm not against adding it, PRs are always welcome. Do you want to try to implement it?

@adeys
Copy link

adeys commented Jun 3, 2024

Great.
Yes I'll submit a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants