GitXplorerGitXplorer
g

styled-jsx-plugin-sass

public
122 stars
24 forks
19 issues

Commits

List of commits on branch master.
Unverified
a440627191a9c3ba8e1218fd127dbd6d0134a525

0.3.0

ggiuseppeg committed 6 years ago
Unverified
f7e3d5a719d8769a737bad8ad4b7381da73334b6

Update index.js (#25)

GGameghostify committed 6 years ago
Unverified
82aeda678c1006db3bb4e67e6397fd520b0b8c72

0.2.4

ggiuseppeg committed 7 years ago
Unverified
39ca0e3ef09c41d636c701467d0bb4aa3674b472

fix placeholders with css !important flag (#16)

TTomekmularczyk committed 7 years ago
Unverified
77c4f64f92d4432571659c5cdcff4415c9db7fb3

0.2.3

ggiuseppeg committed 7 years ago
Unverified
6ffc6b715004a23a72570ae2d9d702ddd6c7e7c4

Enable relative imports when filename is provided (#11)

MMarcPorciuncula committed 7 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