Gathering detailed insights and metrics for styled-jsx-plugin-postcss
Gathering detailed insights and metrics for styled-jsx-plugin-postcss
Gathering detailed insights and metrics for styled-jsx-plugin-postcss
Gathering detailed insights and metrics for styled-jsx-plugin-postcss
avet-styled-jsx-plugin-postcss
Plugin to add PostCSS support to avet-styled-jsx
gatsby-plugin-styled-jsx-postcss
A Gatsby plugin to use styled-jsx with PostCSS
styled-jsx-plugin-postcss-fix
Plugin to add PostCSS support to styled-jsx
@thedadi/styled-jsx-plugin-postcss
Plugin to add PostCSS support to styled-jsx
npm install styled-jsx-plugin-postcss
Typescript
Module System
Node Version
NPM Version
JavaScript (99.79%)
CSS (0.21%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
92 Stars
40 Commits
17 Forks
3 Watchers
7 Branches
11 Contributors
Updated on Oct 14, 2024
Latest Version
4.0.1
Package Id
styled-jsx-plugin-postcss@4.0.1
Unpacked Size
10.25 kB
Size
4.31 kB
File Count
13
NPM Version
6.14.4
Node Version
12.16.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
Use PostCSS with styled-jsx 💥
⚠️ This plugin is not actively being maintained. If you want me to work on it please consider donating.
Companies and individuals who sponsored some work on this library:
Install this package first.
1npm install --save styled-jsx-plugin-postcss
Next, add styled-jsx-plugin-postcss
to the styled-jsx
's plugins
in your
babel configuration:
1{ 2 "plugins": [ 3 ["styled-jsx/babel", { "plugins": ["styled-jsx-plugin-postcss"] }] 4 ] 5}
With config:
1{ 2 "plugins": [ 3 [ 4 "styled-jsx/babel", 5 { 6 "plugins": [ 7 [ 8 "styled-jsx-plugin-postcss", 9 { 10 "path": "[PATH_PREFIX]/postcss.config.js", 11 "compileEnv": "worker" 12 } 13 ] 14 ] 15 } 16 ] 17 ] 18}
When using Node.js v12.3.0 and above the plugin defaults to compiling using a worker thread instead of a child process. This results in faster builds.
If for any reason you want to force compiling using a child process (slower) you can register the plugin with the config option compileEnv
set to process
.
Usage with Create React App requires you to either eject or use react-app-rewired.
Here is an example using react-app-rewired
:
1// config-overrides.js 2// this file overrides the CRA webpack.config 3 4const { getBabelLoader } = require("react-app-rewired"); 5 6module.exports = function override(config, env) { 7 const loader = getBabelLoader(config.module.rules); 8 9 // Older versions of webpack have `plugins` on `loader.query` instead of `loader.options`. 10 const options = loader.options || loader.query; 11 options.plugins = [ 12 [ 13 "styled-jsx/babel", 14 { 15 plugins: ["styled-jsx-plugin-postcss"], 16 }, 17 ], 18 ].concat(options.plugins || []); 19 return config; 20};
Note: Please follow their instructions on how to set up build & test scripts, and make sure you have a correctly formatted postcss.config.js
as well.
styled-jsx-plugin-postcss
uses styled-jsx
's plugin system which is supported
from version 2. Read more on their repository for further info.
styled-jsx-plugin-postcss
uses
postcss-load-config
therefore you may want to refer to their docs to learn more about
adding plugins.
PRs and contributions are welcome!
We aim to drive development of this plugin through community contributions.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More