New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-unwrap-mq

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-unwrap-mq

PostCSS plugin to extract matched media queries to their parents

  • 0.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
increased by107.69%
Maintainers
3
Weekly downloads
 
Created
Source

PostCSS Unwrap Mq

PostCSS plugin to extract matched media queries to their parents.

version node-current npm licence Snyk Vulnerabilities for npm package

.foo {
    /* Input example */
}

@media print {
  .bar {
  }
}
.foo {
  /* Output example */
}

.bar {
}

Usage

Check you project for existed PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you already use PostCSS, add the plugin to plugins list:

module.exports = {
  plugins: [
+   require('postcss-unwrap-mq')({
+     regex: /print/,
+   }),
    require('autoprefixer'),
  ],
}

If you do not use PostCSS, add it according to official docs and set this plugin in settings.

Keywords

FAQs

Package last updated on 03 Jan 2023

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