remixz/run-js

Add support for stylesheets

Open

#4 aberto em 31 de dez. de 2015

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (8 forks)github user discovery
enhancementhelp wantedstarter

Métricas do repositório

Stars
 (188 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Despite it being named run-js, it would be nice if stylesheets would be automatically added if they exist. As well, support for processors like SASS and LESS would be really nice. Maybe regular CSS could be run through cssnext as well, like how regular JS is run through Babel right now.

There'd have to be a new definition of handlers (probably just add a type attribute to the file, see GH-2), and for those type of handlers, they'd just have a function that returns the compiled CSS. As well, the correct content type would need to be set. Probably wouldn't be too hard to implement, and would provide great value!

Guia do colaborador