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

@mediacurrent/gatsby-plugin-silence-css-order-warning

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediacurrent/gatsby-plugin-silence-css-order-warning

Gatsby plugin to silence CSS order warning when using CSS modules or other CSS in JS.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
233
decreased by-68.68%
Maintainers
7
Weekly downloads
 
Created
Source

gatsby-plugin-silence-css-order-warning

Description

For some projects, you may be using CSS Modules or another CSS-in-JS library to safely scope CSS between pages and components. The webpack mini-css-extract-plugin however, still warns that the CSS might be bundled out of order. The warning is:

warn chunk styles [mini-css-extract-plugin] Conflicting order. Following module has been added:

As long as you are properly using your CSS-in-JS library, this warning can be ignored.

How to install

npm install @mediacurrent/gatsby-plugin-silence-css-order-warning

Then add the plugin to your gatsby-config.js file.

module.exports = {
  plugins: [
    '@mediacurrent/gatsby-plugin-silence-css-order-warning'
  ]
}

Caution

Because this plugin silences the warning completely, it may swallow a valid warning of CSS order bundling that you may have in your project.

Keywords

FAQs

Package last updated on 14 Dec 2020

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