faceyspacey / redux-first-router-demo

Kick-Ass Universal RFR Demo That Answers Your SSR + Splitting Questions
MIT License
126 stars 46 forks source link

css in html #44

Open VitaliyGaliy opened 6 years ago

VitaliyGaliy commented 6 years ago

How can I add main css file directly in html template? For example I have a bootstrap theme and stlyle.css, so in create-react-app I simply add -

sibnerian commented 6 years ago

You could add it in the generated HTML, if it's global CSS. See: render.js.

VitaliyGaliy commented 6 years ago

If I add it this way - ........ import myStyle from './style.js' const chunkNames = flushChunkNames() const { js, styles, cssHash } = flushChunks(clientStats, { chunkNames }) ...... `<!doctype html>

redux-first-router-demo ${styles} ${myStyle} ..... I`ll got [Object Object]