express-react-views icon indicating copy to clipboard operation
express-react-views copied to clipboard

webpack css loader compatibility

Open a-x- opened this issue 9 years ago • 1 comments

// 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>?

a-x- avatar Aug 21 '16 12:08 a-x-

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/)

zpao avatar Mar 03 '18 20:03 zpao