This is just a boilerplate/sample,
how to integrate coreui
in create-react-app
.
note, that sass can't be compiled in create-react-app
by default. So here i implement with node-sass-chokidar
mostly its just make compilation for sass to css, in src/styles/css
, and react include css files, instead of sass
- it only implement
npm-run-all
andnode-sass-chokidar
, seepackage.json
. - scss files located in
src/styles/scss
. And will be compiled tosrc/styles/css
. almost no changes. - for img directory in
src/styles/img
. It just an images used in css files. react really use that files. so better separation between images for css files, and images in public directory. - how i implement the css files. see
src/index.js
:-) - just compile as usual with
yarn
ornpm install
, then run onyarn run start
ornpm run start
. - *if build
start
not compile css files. Maybe it because of watch mode, try to edit something inscss
files, to see if it will compile.