You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

motleycss

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motleycss

A tool that splits large CSS files to fix the internet explorer selector limit bug

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Motley CSS - Current version is 1.0.4

A tool for splitting CSS files to fix the Internet Explorer selector limit of 4096 bug.

Getting started

In order to use motley you will need to require it and then it will return the motley function that you can call.

var motley = require('motley'); motley({ fileName:'nameOfHugeCssFile.css', diagnostics:false, callback:function () {}, limit:4095 });

fileName (required)

The file name is the name of the file that has the large amount of css inside of it. Motley will override it with the css that fits within IE's limits and then add imports to that file and create the rest of the files labeled fileName1, fileName2, etc as many files as are needed to stay under the specified limit or the IE limit.

diagnostics (optional)

When set to true, diagnostic information will be printed when ran to keep track of things and see selector and comment count. The default value is false.

callback (optional)

As this is an asynchronous operation the callback is for you to know when Motley is finished. By default this is undefined.

limit (optional)

The library is for the IE limit of 4096 however if you would like the limit to be smaller or larger for performance testing that is allowed.

Contributing

Create an issue and a PR and I will look into it.

License

MIT license found in the LICENSE file above.

Keywords

internet

FAQs

Package last updated on 20 Dec 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.