GitXplorerGitXplorer
g

styled-jsx-plugin-sass

public
122 stars
24 forks
19 issues

Commits

List of commits on branch master.
Unverified
8b20e447d93b4aa6294d23f644c6c143ddf5adba

Update issue templates

ggiuseppeg committed 4 years ago
Verified
1adbdd3554d024c4e3882b885bf812236b2c65bb

Update README.md

ggiuseppeg committed 4 years ago
Verified
bc90a410e25b441c03cb5bc13a83b6d5ee71c11b

FUNDING.yml

ggiuseppeg committed 5 years ago
Unverified
95f4d51ea130e7d8ffe805703e3e3c893400c752

1.0.0

ggiuseppeg committed 6 years ago
Unverified
62aa2e3e70b325d3e80632af140e1d0bbe10de1a

Merge branch 'master' of github.com:giuseppeg/styled-jsx-plugin-sass

ggiuseppeg committed 6 years ago
Unverified
e0175b955c876c4a8c31acc5352260b7b63f49d5

Don't augment/override includePaths. (#28)

aatombender committed 6 years ago

README

The README file for this repository.

styled-jsx-plugin-sass

Build Status npm

Use Sass with styled-jsx 💥

⚠️ This plugin is not actively being maintained. If you want me to work on it please consider donating.

Usage

Install the package first.

npm install --save-dev styled-jsx-plugin-sass

Install the node-sass version you need (it is a peer dependency).

npm install --save-dev node-sass

Next, add styled-jsx-plugin-sass to the styled-jsx's plugins in your babel configuration:

{
  "plugins": [
    [
      "styled-jsx/babel",
      { "plugins": ["styled-jsx-plugin-sass"] }
    ]
  ]
}

Node-sass options

Node-sass can be configured using sassOptions. This is useful for setting options such as includePaths or precision.

{
  "plugins": [
    [
      "styled-jsx/babel",
      {
        "plugins": [
          ["styled-jsx-plugin-sass", {
              "sassOptions": {
                "includePaths": ["./styles"],
                "precision": 2
              }
            }
          ]
        ]
      }
    ]
  ]
}

Notes

styled-jsx-plugin-sass uses styled-jsx's plugin system which is supported from version 2.

Read more on their repository for further info.

License

MIT