nmcteam / mulch

A frontend gulpfile boilerplate that uses Twig.js, LESS and/or SASS compilation and BrowserSync. Perfect for PHP CMS projects.
MIT License
15 stars 5 forks source link

support sass and css #3

Open olets opened 8 years ago

olets commented 8 years ago

Use a "styles" or "stylesheets" folder, run less on src/styles/*.less, sass on ...*.scss, minify less/scss/css together.

Preserving cascade order is a potential problem, but for now safe to assume that no single project will mix less, scss, and css.

For Sass, see https://github.com/gulpjs/gulp/blob/master/docs/recipes/server-with-livereload-and-css-injection.md and (scroll down to "setting up tasks") https://community.nitrous.io/tutorials/setting-up-gulp-with-livereload-sass-and-other-tasks

JoelSutherland commented 8 years ago

It's easy enough to add Sass -- it can compile just like LESS. I'd like some help/direction on how to make it toggle-able with LESS. Nobody will use both so I don't want both to be a requirement but I don't yet know enough about Gulp to do this right.

rickerd commented 6 years ago

In my PR #16 i've added support for Sass and dropped LESS. Since less is getting a bit old Sass is the new standard.

I hope you'll like it.