geelen / jspm-loader-css

50 stars 27 forks source link

feat: use SystemJS config rules in CSS imports #26

Closed douglasduteil closed 9 years ago

douglasduteil commented 9 years ago

The loader will now normalize the given path through SystemJS. This allows you to use SystemJS custom paths/maps in your CSS imports.

The following composes are now valid :

// Your config.js
System.config({
  paths: {
    "github:*": "jspm_packages/github/*",
    "~/*": "somewhere/*"
  }
}
// Your ike.icss
.ike {
  composes: bounce animated from "https://github.jspm.io/daneden/animate.css@v3.1.0/dist/animate.css";
  composes: bounce animated from "github:daneden/animate.css@v3.1.0/dist/animate.css";
  composes: bounce animated from "~/animate.css";
}
geelen commented 9 years ago

This is really awesome. Can you also add something to the README about usage?

douglasduteil commented 9 years ago

yeap :+1: