JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q35616F
  • License MIT

makes IE capable of rendering several of the most useful CSS3 decoration features.

Package Exports

  • postcss-pie

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-pie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

postcss-pie

NPM version Travis AppVeyor Coverage Status

makes IE capable of rendering several of the most useful CSS3 decoration features.


简体中文

postcss-pie is a plugin for PostCSS, use PIE, to makes IE6-IE9 several of the most useful CSS3 decoration features. like:

Usage

Download PIE, Unpack all the files and deploy them to a directory of the web server, such as /pie/ Configure your postcss

var postcss = require('postcss');
var pie = require('postcss-pie');

postcss([
    pie({
        // You must use absolute address and must have the same domain name as HTML. You must not cross domain or use CDN address.
        htcPath: '/pie/PIE.htc',
        // The path to the directory where other files of PIE is, must be full URL, and can be CDN addresses.
        pieLoadPath: 'http://server.com/pie/',
    });
]);

Serving the correct Content-Type

IE requires that HTC behaviors are served up with a content-type header of "text/x-component", otherwise it will simply ignore the behavior. See PIE related documents

PIE documentation