I have just installed Sage for the first time. Everything went smoothly until I started working on CSS and JS. The files are watched and from the Terminal everything looks rosey (“Compiled successfully in 1112ms”).
But, I don’t see any style.css or main.js files. Or even any /dist/ folder. I also don’t see the node_modules folder in my theme either.
The correct command for building/watching is yarn start so I’m guessing that’s what you mean. Simply running yarn will install your Node dependencies, but won’t start the watching process.
The dist directory is only created when you run yarn build or yarn production if memory serves.
Yes sorry, yarn start. Ok so embarrassingly, I’m using a new text editor and turns out that ignored files/folders aren’t visible by default. I’ve changed that now and can see both the node_modules and dist folders.
In dist I only see a scripts, no CSS. When I make a change to an .scss file the compiler says…
You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.
Are you using Sage 10 beta 2 with Bud? If so, you’ll need to add Sass support
There’s some existing topics / GitHub issues with the specifics
If you’re using Sage 9, is it version 9.0.10? If so, you might want to switch to the 9.x branch and read some of the existing topics about how the dependencies have been bumped