0.4.2 • Published 2 years ago

postcss-unwrap-mq v0.4.2

Weekly downloads
19
License
MIT
Repository
github
Last release
2 years ago

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.

0.4.2

2 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago