keystonejs / generator-keystone

⚠️ Archived - Legacy KeystoneJS project generator for Yeoman
MIT License
335 stars 143 forks source link

sass files don't compile when switching from less #250

Closed johnnyluu closed 7 years ago

johnnyluu commented 7 years ago

I set the project up with less chosen as the default css preprocessor, but now we've decided to use sass instead. I replaced 'less' with 'sass' in keystone.js, and installed node-sass and node-sass-middleware, but the sass files are just not getting compiled.

I tried starting a new project with sass set as default, that worked fine. Then I created another new project with less as default, then tried to switched to sass, it didn't compile either, so it's not likely related to the actual app I've written. Any idea why this is happening?

Noviny commented 7 years ago

Hi @johnnyluu , the sass file compiles down to site.css, while for less, this compiles down to site.min.css. If you look in templates/layouts/default, you can find where the file is referenced. You need to repoint this folder when making the switch.

johnnyluu commented 7 years ago

Thanks, I worked