redux-first-router-demo icon indicating copy to clipboard operation
redux-first-router-demo copied to clipboard

css in html

Open VitaliyGaliy opened this issue 6 years ago • 2 comments

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 -

VitaliyGaliy avatar Mar 11 '18 18:03 VitaliyGaliy

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

sibnerian avatar Mar 15 '18 18:03 sibnerian

If I add it this way - ........ import myStyle from './style.js' const chunkNames = flushChunkNames() const { js, styles, cssHash } = flushChunks(clientStats, { chunkNames }) ...... <!doctype html> <html> <head> <meta charset="utf-8"> <title>redux-first-router-demo</title> ${styles} ${myStyle} ..... Ill got [Object Object]

VitaliyGaliy avatar Mar 26 '18 05:03 VitaliyGaliy