Custom jspm
plugin for loading CSS by applying some PostCSS transformations:
- postcss-import
- postcss-sassy-mixins
- postcss-nested
- postcss-simple-vars
- postcss-custom-media
- autoprefixer
- postcss-calc
- postcss-hover-prefix
jspm install css=github:MediaSQ/sweetspot-front-jspm-css
import 'styles.css!'
function foo() {
console.log('bar');
}
An Autoprefixer version is bundled within the plugin. jspm
has issues when loading cross-package JSONs and Autoprefixer makes heavy using of this feature for loading its caniuse
database.
The autoprefixer.js
file is borrowed from the jspm-loader-css plugin.
Because of the jspm
name collision policy, the CSS files cannot be placed within a css/
folder. More info:
© MediaSQ