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

What if I have 5 files for styles, how can I handle it? #28

Open
Bear-Coding opened this issue Aug 1, 2019 · 2 comments
Open

What if I have 5 files for styles, how can I handle it? #28

Bear-Coding opened this issue Aug 1, 2019 · 2 comments

Comments

@Bear-Coding
Copy link

if (pathname === '/' || pathname === '/style.css' || pathname === '/app.js') {

@samjam48
Copy link
Collaborator

samjam48 commented Aug 1, 2019

I would change the file structure of the front end and have them in one folder and handle that separately. It's not a current problem.
Should have been designed better up-front yes. but taking time to fix vs other things I wouldn't class as a priority

@Bear-Coding
Copy link
Author

We never did it in this way, its a bad way of making the handler. I don't know who did come up with making it in this way.
Try to refactor it and more high-level code if you can.

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

2 participants