Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream #13

Closed
yoshuawuyts opened this issue Sep 8, 2015 · 2 comments
Closed

stream #13

yoshuawuyts opened this issue Sep 8, 2015 · 2 comments

Comments

@yoshuawuyts
Copy link
Contributor

Be able to do this:

const sheetify = require('sheetify')
const http = require('http')

http.createServer((req, res) => {
  const s = sheetify(__dirname + '/index.css')
  s.bundle().pipe(res)
}).listen()
@yoshuawuyts
Copy link
Contributor Author

Probably want to stay consistent with the browserify api and turn the cb into a buffer:

sheetify(__dirname + '/index.css').bundle((err, buf) => {
  const css = buf.toString()
})

@yoshuawuyts yoshuawuyts mentioned this issue Sep 8, 2015
@yoshuawuyts
Copy link
Contributor Author

Closed in 2863a59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant