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

PostCSS in the browser #913

Closed
alexisvincent opened this issue Nov 6, 2016 · 15 comments
Closed

PostCSS in the browser #913

alexisvincent opened this issue Nov 6, 2016 · 15 comments

Comments

@alexisvincent
Copy link

What kinds of things make it hard to run PostCSS in the browser. I'm asking because I'm particularly interested in getting the PostCSS ecosystem running smoothly in SystemJS.

@ai
Copy link
Member

ai commented Nov 6, 2016

Just use webpack/browserify to build a PostCSS and plugins into a single file.

Is it OK for your case?

@alexisvincent
Copy link
Author

Thanks for the amazingly quick response. I noticed @guybedford did this in the latest systemjs-css plugin. Whats stopping me from importing postcss and plugins in the application and using it like that?

@ai
Copy link
Member

ai commented Nov 6, 2016

I added a Browser section to docs b302129

@ai ai closed this as completed Nov 6, 2016
@alexisvincent
Copy link
Author

Thanks. To clarify, why this, over importing and using plugins directly in 'application' level code (Which gets compiled by something like browserify or webpack)?

@ai
Copy link
Member

ai commented Nov 6, 2016

If your application is built webpack/browserify you could use PostCSS inside app’s webpack :D.

Maybe I didn’t write it clear. Do you want to send a PR for this section?

@alexisvincent
Copy link
Author

Ok thanks. Do you know to what degree other plugins support running in the browser?

I'll contribute once I'm feeling more confident I know whats going on :) Thanks :)

@ai
Copy link
Member

ai commented Nov 6, 2016

Most of non-fs-related plugins are working (of course, postcss-assets or postcss-import could not work, because of lack of FS)

@alexisvincent
Copy link
Author

This is what I would have expected. However there's no real reason fs related things shouldn't be able to work. If we have a way of mapping browser URL's to files.

@al
Copy link

al commented Nov 6, 2016

Wrong @al. Unsubscribing.

@alexisvincent
Copy link
Author

@al How did you even get pulled in to this convo?

@ai
Copy link
Member

ai commented Nov 6, 2016

@alexisvincent what is “convo”?

@alexisvincent
Copy link
Author

@ai Sorry, convo <-> conversation

@alexisvincent
Copy link
Author

alexisvincent commented Nov 6, 2016

@al isn't mentioned anywhere, and yet he was still subscribed to the issue. Sounds like a bug with github to me

@ai
Copy link
Member

ai commented Nov 6, 2016

@alexisvincent I make a typo and then edit message.

@alexisvincent
Copy link
Author

Oh I see 👍

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

3 participants