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

I'm facing issues with CSS after I run build. #8375

Closed
PManager1 opened this issue Jan 26, 2020 · 7 comments
Closed

I'm facing issues with CSS after I run build. #8375

PManager1 opened this issue Jan 26, 2020 · 7 comments

Comments

@PManager1
Copy link

Describe the bug:

CSS Works fine in local but it ruins the css after i run build to run via the nginx in production.

I see the same css issues if i run with python server on my local computer. So there's some issue in the way build is being created.

(Write your answer here.)

Did you try recovering your dependencies?

What is that ?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

Mac : high sierra .

(paste the output of the command here.)

Steps to reproduce

(Write your steps here:)

Expected behavior

(Write what you thought would happen.)

Actual behavior

(Write what happened. Please add screenshots!)

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@hegelocampus
Copy link

Could you expand more on what you mean by "ruins the css?"
Are any style-sheets loading into your application?
What directory are you storing the style-sheets?
How are you importing the style-sheets into the html file?
Thanks.

@PManager1
Copy link
Author

PManager1 commented Jan 30, 2020 via email

@hegelocampus
Copy link

I'd also highly recommend making sure you've gone through the article here on adding a stylesheet to your project, if you haven't already.

@PManager1
Copy link
Author

So im importing a css file inside the component like this : import './Item.css'; Is it okay ? whats the better option ?

@PManager1
Copy link
Author

I removed this file and still it fucks up when rendering from the server.

@stale
Copy link

stale bot commented Mar 8, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Mar 8, 2020
@stale
Copy link

stale bot commented Mar 13, 2020

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

@stale stale bot closed this as completed Mar 13, 2020
@lock lock bot locked and limited conversation to collaborators Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants