Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

craco-stylus

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

craco-stylus

craco-stylus allows to use stylus with create-react-app and Craco

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

craco-stylus

Stylus plugin for Craco. Allows using Stylus .styl files in create-react-app 3.0 and also works with TypeScript.

  • CSS Module imports: import styles from "./App.module.styl";
  • Global imports: import "./App.module.styl";

Getting started with create-react-app

$ create-react-app karate-app

$ cd karate-app

$ yarn add @craco/craco craco-stylus stylus stylus-loader

package.json

   "scripts": {
-    "start": "react-scripts start",
+    "start": "craco start",
-    "build": "react-scripts build",
+    "build": "craco build",
-    "test": "react-scripts test",
+    "test": "craco test",
-    "eject": "react-scripts eject"
+    "eject": "craco eject"
   },

craco.config.js

const CracoStylusPlugin = require("craco-stylus");

module.exports = {
  plugins: [
    {
      plugin: CracoStylusPlugin
    }
  ]
};

FAQs

Package last updated on 15 Mar 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc