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

Load external npm modules #35

Open
dfosco opened this issue Sep 8, 2017 · 1 comment
Open

Load external npm modules #35

dfosco opened this issue Sep 8, 2017 · 1 comment

Comments

@dfosco
Copy link

dfosco commented Sep 8, 2017

Would be great to be able to load external npm modules to get "third-party" tachyons modules or even additional libs into the same bundle.

Something like this, perhaps:

{
  "typeScale": [
    3, 2.25, 1.5, 1.25, 1, 0.875
  ],
  "spacing": {
    "root": 8,
    "ratio": 2,
    "steps": 6
  },
  "external": {
    "npm@animate-css": "^3.5.2"
  }
}
@johno
Copy link
Member

johno commented Sep 9, 2017

This sounds great, we could also allow the user to determine if they want the classes to also have media queries added. Additionally the could potentially select which classes they want to bring in. So if the only wanted to bring in a subset of animate-css they could pass a class array:

"external": {
  "npm@animate-css": {
    "version": "^1.2.3",
    "mq": true,
    "classes": ["class-a", "class-b", "class-c"]
  }
}

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

2 participants