knksmith57 / hexo-renderer-sass

Sass renderer plugin for Hexo
47 stars 45 forks source link

tilde importer, closes #37 #38

Closed TrejGun closed 6 years ago

TrejGun commented 7 years ago

Will you accept this PR?

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 97ea2d49bb4bd6a2e4bf58550fc1dd0724d79c5b on TrejGun:master into 961935e374f014c0cb1373bbbf8dc28a7f5eeab9 on knksmith57:master.

teddybradford commented 7 years ago

I'd love to see this merged!

JLHwung commented 6 years ago

Please use includePaths to import any third-party node_modules/bower_components stylesheets, documentation | example.

I will mark this issue as won't fix unless we find a way to configure importer on yaml. Loading extra importer/sass-plugins will make this renderer more complicated than it should be.

jeroenpelgrims commented 6 years ago

For future reference, seeing it is not intuitive at all where you're supposed to put this example config:

In _config.yml you add the following:

node_sass:
  includePaths:
    - "./node_modules"

Then you can reference font-awesome like this: @import "font-awesome/scss/font-awesome"; (You'll need to copy the font files to your public/source directory yourself)