Webpack not importing external stylesheets #3104
Unanswered
Yokubjon-J
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I am sorry for the seemingly off topic title,
I am having problems with with webpack and I think it is also connected to emotion-js. I have a repo built with react, express and webpack. It is an SSR website. It is a skeleton website. It has a text editor, remirror. I have also imported remirror’s own css stylesheet here. But the problem is that that stylesheet is not being imported. I think this maybe due to a slightly incorrect webpack configuration or I may not have configured emotion-js correctly. I run my website by typing
npm run development
. And due to the absence of the stylesheet I get this ugly editorTo solve the problem, I previously
wrote
externals: [nodeExternals({
allowlist: [/.css$/]
})],
in my webpack configuration file. But it didn’t work. Then I wrote
externals: [nodeExternals({
allowlist: [/.(?!(?:jsx?|json|css)$).{1,5}$/i]
})],
But it also didn’t work. Could you please help me?
Beta Was this translation helpful? Give feedback.
All reactions