divineaverage / P3_OhMyFood

Lindsay Jawor - OC P3 code
https://divineaverage.github.io/P3_OhMyFood/
0 stars 0 forks source link

Issue with many-to-many setup #1

Closed divineaverage closed 2 years ago

divineaverage commented 2 years ago

Hey @AccessiT3ch, I have everything set up but I think I must have the script in package.json wrong, because now I have to manually save index.scss and subpages.scss before it will compile properly. What did I do? Thanks in advance!

AccessiT3ch commented 2 years ago

@divineaverage It's a little hard to tell exactly b/c script doesn't match the sass files that are checked in, but it looks like your syntax should at least be close to working.

One thing I noticed is that both outputs are being output to the same file 'style.css', vs:

"sass" :  "sass --watch ./sass/subpages.scss:./public/css/subpages.css ./sass/index.scss:./public/css/index.css

The files being imported in the specified file should also be automatically being watched. Are your styles updating correctly when you manually save the files?

divineaverage commented 2 years ago

WORD, that seems to have fixed it! It was updating correctly when I saved manually, but only when I saved the all of the files again, in the right order. I think this fixed it, and now I get it! Thanks big time!!