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 myth to preprocess vendor css #2

Open
patrickberkeley opened this issue Apr 12, 2015 · 5 comments
Open

How to use myth to preprocess vendor css #2

patrickberkeley opened this issue Apr 12, 2015 · 5 comments

Comments

@patrickberkeley
Copy link

Can you provide and example of how to run vendor css files through myth with this addon please?

For example if I install https://github.com/suitcss/suit with bower I have a bunch of css files that need to be run through a preprocessor that handles css variables, math, etc.

"bower_components/suit-base/lib/base.css";
"bower_components/suit-components-arrange/lib/arrange.css";
"bower_components/suit-components-button/lib/button.css";
...more

How do I preprocess them and add them to the tree?

@jasonmit
Copy link
Owner

Sorry for the delayed response, must have missed the notification.

I am guessing you want to also control where these are outputted to, or do you want to have one app.css and import these files in?

@patrickberkeley
Copy link
Author

I was going for the latter: Using CSS imports in app/styles/app.css to import from bower components as follows:

@import "bower_components/suit-base/lib/base.css";
@import "bower_components/suit-components-arrange/lib/arrange.css";
@import "bower_components/suit-components-button/lib/button.css";

But IIRC the imports are not run through myth.

@jasonmit
Copy link
Owner

It has to be relative to your inputFile: app/styles/app.css

@import "../../bower_components/suit-base/lib/base.css";
@import "../../bower_components/suit-components-arrange/lib/arrange.css";
@import "../../bower_components/suit-components-button/lib/button.css";

@jasonmit
Copy link
Owner

segmentio/myth#135

@jasonmit
Copy link
Owner

Reopening, as the proposal to add paths and passing it on to the importer parser is a go.

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

No branches or pull requests

2 participants