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

postcss-prepend-rule

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-prepend-rule

PostCSS plugin to prepend rule for each files

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

PostCSS Prepend rule

PostCSS plugin to automatically prepend rule

Fork from https://github.com/ramonvictor/postcss-prepend-imports Majority to handle the issue of Nextjs css order issue: https://github.com/vercel/next.js/issues/47585

Example using postcss.config.json

{
  "plugins": [
    [
      "postcss-prepend-rule",
      {
        "rule": "@layer normalize, globals, custom-css"
      }
    ],
    "postcss-flexbugs-fixes",
    [
      "postcss-preset-env",
      {
        "autoprefixer": {
          "flexbox": "no-2009"
        },
        "stage": 3,
        "features": {
          "custom-properties": false
        }
      }
    ]
  ]
}

Installation

npm install postcss-prepend-rule --save-dev
rule

Type: string (default: [])

css text to prepend in all css files


See PostCSS docs for examples for your environment.

Keywords

FAQs

Package last updated on 16 Sep 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

  • 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