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

How to use without insert-css? #14

Open
GeoffreyBooth opened this issue Jun 28, 2015 · 4 comments
Open

How to use without insert-css? #14

GeoffreyBooth opened this issue Jun 28, 2015 · 4 comments

Comments

@GeoffreyBooth
Copy link

Is there a way to use this with Browserify to take a Stylus file as an entry point, and generate a CSS file as its output? For example, in a Browserify config:

entries: './src/main.styl'
dest: './build/'
outputName: 'styles.css'
extensions: ['.styl']
sourcemaps: yes

For what it’s worth, I’m also using nib, import_tree and autoprefixer.

@yocontra
Copy link
Collaborator

Use the normal stylus module for this, I don't understand why you would want to do this within browserify

@GeoffreyBooth
Copy link
Author

I just wanted to take advantage of Watchify for Stylus, instead of using Gulp’s default watch task; and to simplify my build pipeline. Currently I have Browserify handling all my app code, vendor code and my Handlebars templates; if I can add Stylus to the mix, then I don’t need separate stylus and watch tasks.

@max-degterev
Copy link

Would be actually cool to have "auto-inject" option, similar to https://www.npmjs.com/package/sassify

@marco-a
Copy link

marco-a commented Aug 21, 2016

Yes such a feature would be really nice!

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

4 participants