Socket
Socket
Sign inDemoInstall

iemedia-postcss

Package Overview
Dependencies
5
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    iemedia-postcss

A post processor for CSS to conditionally remove Media queries


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Install size
0.973 MB
Created
Weekly downloads
 

Readme

Source

iemedia-postcss

A simple Node.js module that makes use of the postcss CSS postprocessor module to strip media tags from style sheets in order to make them more compatible with old versions of IE (especially IE8).

Usage

var avoid = [
        'max-width',
        'orientation',
        'handheld',
        'print',
        'aspect-ratio',
        'max-height',
        'resolution',
        'max-device-width',
        'max-device-height',
        'max-resolution'
      ];

    var processor = require('iemedia-postcss')(avoid);

    var css = grunt.file.read("source.css");
    css = processor.process(css);
    grunt.file.write("output.css",css);

Release History

  • 2015   v0.1.0   Initial build

License

Copyright (c) 2015 iCrossing Licensed under the MIT license.


Project created by Arne Strout.

This file was generated on Fri Jan 16 2015 11:21:42.

Keywords

FAQs

Last updated on 05 Feb 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc