BeautifulDiscord icon indicating copy to clipboard operation
BeautifulDiscord copied to clipboard

less/sass/preprocessor support

Open leovoel opened this issue 7 years ago • 2 comments

i've had a few requests for this, still not entirely sure it's a good call.

basically it would run the appropriate preprocessor on your file before adding it to the DOM. this could be based on the filename, if it ends with .less it gets processed, if it ends with .css it doesn't, yadda yadda.

things:

  • sass is giant, so bundling that would be kind of terrible. less is more manageable on that part. postcss is also neat (and quite small), but not a direct preprocessor, rather just something you can build a preprocessor with.

  • bundling these libraries is not exactly something i'm thrilled about. i'm afraid anything else would just complicate matters too much, though.

  • reloading is probably going to get a bit slower. i don't care all that much, but still...

there's the argument that this shouldn't be done in first place because it's kind of trivial to setup your workflow so that you can save and your less/sass/whatever thing gets compiled into the right css file and it gets picked up anyway. that's at least easier on my side, but i don't know how are most people using the tool feel about this.

i don't know which path i'm going to take yet (i'm very heavily leaning on keeping it out), so i'm making an issue so that i can get some more thoughts about this.

leovoel avatar Jan 19 '17 11:01 leovoel

+1 for LESS (I want that gif avatar annihilator to be a thing already)

Roadcrosser avatar Jan 28 '17 11:01 Roadcrosser

I think what it not needed. You may create anywhere your own .sass, .less, e.t.c. file, then compiile it to right .css and this file will be just grabbed by your tool. Just normally when you update file, rewrite that .css and it will be updated in Discord as for now.

XCanG avatar Oct 27 '17 16:10 XCanG