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

Multiple preprocessors? #163

Open
brancusi opened this issue Jun 22, 2017 · 3 comments
Open

Multiple preprocessors? #163

brancusi opened this issue Jun 22, 2017 · 3 comments

Comments

@brancusi
Copy link

I am trying to use the ember-cli-stylus with this side by side. Any recommendations on getting something like that working?

When I try to use both, even if setting the stylus input and output files to a new name, I get errors.

Thanks

@simonexmachina
Copy link
Collaborator

I'm afraid I don't know what's involved in getting this to work. It'll depend on how ember-cli handles the CSS preprocessors, rather than how this module works. Maybe you should open an issue over there?

@jeffjewiss
Copy link

I've found it to be quite challenging to try and get more than one preprocessor to work due to how ember-cli handles them.

The main challenge is that the first processor to run effectively removes the css file (ie. app.scss or equivalent) from the tree of files to be processed since the processor is then responsible for writing it to the output directory. Any processor that tries to run next will throw an error that the file is missing.

You might be able to follow the approach used in this add-on: https://github.com/n1ru4l/ember-cli-css-preprocess, which supports multiple processors, but not specifically stylus, and modify it to suit your needs.

Unfortunately, I don't think you'll be able to use more than one of the popular preprocessors at the same time without some extra configuration to your build setup.

@n1ru4l
Copy link

n1ru4l commented Sep 20, 2017

Feel free to make a PR for stylus :)

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