Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
301 views
in Technique[技术] by (71.8m points)

I got my css webapp (reactjs - nodejs) working perfectly at localhost but when I upload the files to heroku it changes the way they look

The app runs perfectly, the only problem are the css files. I've been doing the imports of the css files like this: import "/my/css/route/file" and most of the css worked fine, but there are some peaces of code that does not take it good.

I've changed to: require("my/css/route/file") and neither works.

Here's a piece of code of both import with the exact route I use:

import "../../css/a_myCSS/myStyle.css";
require("../../css/a_myCSS/myStyle.css");

I've been looking for errors like this on heroku and I think the problem it's at the pipeline process but I'm not sure...

Some examples of how it looks: localhost heroku The left side is for the localhost and the right side is for the heroku cssCompare

question from:https://stackoverflow.com/questions/65860842/i-got-my-css-webapp-reactjs-nodejs-working-perfectly-at-localhost-but-when-i

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...