Good evening,
I am using react with laravel. I have written my css/sass as modules (component.module.css) and stored the scss with the related react component js in a folder of there own (as you dod with components in react).
I installed npm install node-sass as the app did not load sass files.
i Noticed the "sass" folder in "resources" and placed a scss from one of the modules in there - did not work. i also copy and pasted it into the file call app.scs which is preinstalled into the folder. this also did not work.
this is my webpack:
const mix = require('laravel-mix');
mix.react('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
mix.browserSync('localhost:8000');
I have search through google and laravel but not much discussion on this issue.
Is there a set procedure i should follow?
php artisan preset react was done after install.
Thanks for help.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire