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

Option to render CSS into component #1

Merged
merged 4 commits into from
Jun 19, 2018
Merged

Option to render CSS into component #1

merged 4 commits into from
Jun 19, 2018

Conversation

p3k
Copy link
Member

@p3k p3k commented Jun 19, 2018

This PR adds the option less.component to the RequireJS config and – if set to true – renders the LESS code as CSS into the component where it was required from.

We are currently using this to enable LESS in RactiveJS components.

Example:

import Ractive from 'ractive';
import css from 'less!./App';
import template from 'text!./App.html';

const App = Ractive.extend({
  template,
  css
});

export { App };

Would be glad if you considered this, please let me know what you think.

@p3k p3k merged commit 9458e91 into weblyzard:master Jun 19, 2018
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

Successfully merging this pull request may close these issues.

1 participant