Socket
Book a DemoInstallSign in
Socket

styled-jsx-dart-sass

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-jsx-dart-sass

Plugin to add Dart Sass support to styled-jsx

latest
Source
npmnpm
Version
2.0.5
Version published
Maintainers
1
Created
Source

styled-jsx-dart-sass

This is a fork of https://github.com/giuseppeg/styled-jsx-plugin-sass

Difference:

  • this package uses dart-sass instead of node-sass

Usage

Install the package first.

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

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

npm install --save-dev sass

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

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

Sass options

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

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

Keywords

styled-jsx-plugin

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.