stealjs / rfcs

A place to discuss higher level changes to Steal
MIT License
2 stars 0 forks source link

Feature Request, add stylus support #11

Closed matthewp closed 5 years ago

matthewp commented 7 years ago

@es6Test commented on Fri Feb 26 2016

I love stylus more than less, can we support it out of the box too?


@justinbmeyer commented on Fri Feb 26 2016

@es6Test we are probably going to remove the "out of the box" support for less and instead require people use npm to install their favorite style engine.

Would you be interested in helping us create a system-stylus?


@es6Test commented on Fri Feb 26 2016

sorry I'm pretty busy with work and stuff


@justinbmeyer commented on Fri Feb 26 2016

@es6Test it's pretty easy. Here's the sass one: https://github.com/stealjs/steal-sass/blob/master/main.js

You basically need to implement a translate hook.


@pYr0x commented on Sun Feb 28 2016

@es6Test do you know a library for compiling stylus in the browser? Because that is needed for the development mode in steal.


@es6Test commented on Tue Mar 01 2016

I'm not aware of any.


@justinbmeyer commented on Tue Mar 01 2016

Never been to stylus's website before, but within a few seconds I found: http://stylus-lang.com/try.html. This means that there's some build that works in the browser.


@justinbmeyer commented on Tue Mar 01 2016

A quick google search turned up: http://stackoverflow.com/questions/11353296/client-side-usage-of-stylus-css . One of the responses has instructions on how to build stylus for the browser.


@QuantumInformation commented on Wed Jul 20 2016

Can the bulk of the sass code be modified to fit stylus? I have a client that uses stylus and would be nice to drop in steal.


@pYr0x commented on Wed Jul 20 2016

there are 2 things we have to consider.

  1. stylus should work on the browser so that we can load the file via XHR and transpile with stylus (browserversion)
  2. we need to transpile the stylus code in node for bundling things together.

i dont think the steal-sass is actual a good module to copy.

matthewp commented 5 years ago

Issue moved to stealjs/steal #1438 via ZenHub