Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

webpack css loader compatibility #94

Open
a-x- opened this issue Aug 21, 2016 · 1 comment
Open

webpack css loader compatibility #94

a-x- opened this issue Aug 21, 2016 · 1 comment

Comments

@a-x-
Copy link

a-x- commented Aug 21, 2016

// Excuse my beginner's English

I use explicit collecting css into the bundle.css via imports:
import './PoetAvatar.css'

webpack reads these imports and put all grabbed CSS together into my dist/bundle.css

I attempted to add server-side rendering now

Then I got the error: Syntax error: Unexpected token .

Is it possible that express-react-views would inline CSS from these imports into the <style>?

@zpao
Copy link
Member

zpao commented Mar 3, 2018

Long time without comment from me, sorry about that. I don't really want to add webpack into the mix here, and not really sure the best way to even do that, but if somebody wanted to work on an example I'd take it. Honestly though you probably just want to use something like Next.js (https://github.com/zeit/next.js/)

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

No branches or pull requests

2 participants