babel-plugin-transform-import-css
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "babel-plugin-transform-import-css", | ||
"version": "0.1.1", | ||
"description": "Babel plugin to convert css imports into jss objects", | ||
"version": "0.1.2", | ||
"description": "Injects imported styles (css-modules) into js", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build-examples": "babel examples/ -d examples-dist/ --plugins ../index.js" | ||
"build-examples": "babel examples/ -d examples-dist/ --plugins ../index.js", | ||
"postversion": "git push && git push --tags && npm publish" | ||
}, | ||
"keywords": [ | ||
"babel", | ||
"jss", | ||
"css" | ||
"css", | ||
"css-modules" | ||
], | ||
@@ -15,0 +16,0 @@ "repository": { |
@@ -58,1 +58,9 @@ Injects imported styles (css-modules) into js. | ||
It is good for portability. | ||
# Alternatives | ||
- [babel-plugin-react-css-modules](https://github.com/gajus/babel-plugin-react-css-modules) | ||
- adds custom syntax | ||
- react specific | ||
- it isn't `export { classes }` friendly | ||
- [babel-plugin-import-css-to-jss](https://github.com/websecurify/babel-plugin-import-css-to-jss) | ||
- breaks css-modules api (`import jssObject from './style.css'`) |
195438
113
4702
66