colejoffray / Stockify

1 stars 0 forks source link

Consider using `sass` for CSS precompilation #3

Open nucleardreamer opened 8 months ago

nucleardreamer commented 8 months ago

I notice that there is a plain CSS file in the public directory, this is fine but you might gain a lot from pre-compilation for browser compatibility and ease of use with variables, include, and extends.

So a setup for this would be something like:

Then, you just edit your style.scss file, and it will build into style.css. Now you have a master control to split your scss files out into multiple places, and build them one into a single file. You should also look into minifying, generating a .map and running something like postcss for better compatibility.