aubreypwd / wpkickstart

A great way to kickstart a new WordPress plugin or project.
9 stars 0 forks source link

Add SASS Support #19

Open aubreypwd opened 5 years ago

aubreypwd commented 5 years ago

I, simply, should be able to write SASS. And when I save it a .css version of it is made so I can enque it.

aubreypwd commented 5 years ago

@efuller Also getting you involved here as promised....

I could probably build this out but you could probably do this a lot better than I would.

Here's my initial thoughts on this too:

First off I am not a fan of compiling tons of SASS files down to one file, but I'm not saying that's wrong, I'm just not a fan. I like enqueuing stuff when I use them, e.g. I build services/my-service/assets/styles/my-styles.sass and I want a services/my-service/assets/styles/my-styles.css file made right beside it. That way I could enqueue right then, the piece I want...

But that doesn't mean I don't want you to be able to compile many SASS files into one CSS file. If you wanted to. I'm not sure how we would do both or how one would architect their SASS so that it would build down into one file somehow e.g. via indexes?

Either way I would like that tool to be able to do either, depending on how you build our your SASS in your service/component. Just like #18 we need this tool to work with SASS written in components or services.

Also want to discuss further, just my initial thoughts on this.