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 import SCSS files from node modules? #25

Closed
davision opened this issue Jan 29, 2019 · 5 comments
Closed

How to import SCSS files from node modules? #25

davision opened this issue Jan 29, 2019 · 5 comments

Comments

@davision
Copy link

Does this library support resource from node_modules? For example Foundation framework. Specifying it like this:

  styleResources: {
    scss: [
      'foundation-sites/scss/foundation.scss',
    ]
  },

does not work.

@davision
Copy link
Author

Ok, I see, it works like this: './node_modules/foundation-sites/scss/foundation.scss',

@manniL
Copy link
Collaborator

manniL commented Feb 7, 2019

@davision The example you provide works now as well ☺️ (v0.1.2)

@davision
Copy link
Author

davision commented Feb 7, 2019

O nice! Even more awesome!

@davision
Copy link
Author

davision commented Feb 7, 2019

Just tried it out, but seems to not work. How exatcly should scss files from node_modules be imported?

@manniL
Copy link
Collaborator

manniL commented Feb 8, 2019

@davision As in https://github.com/nuxt-community/style-resources-module/pull/31/files ☺️

Not sure if that works with files "inside" a module though 🤔

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