Compiles .styl files into css:
// import into a javascript variable
import button_css from './buttons.styl'
// direct injection as a <style> tag into document.head
import './buttons.styl'
npm i babel-plugin-stylus-compiler --save-dev
{
"plugins": ["babel-plugin-stylus-compiler"]
}
babel --plugins babel-plugin-stylus-compiler src/ --out-dir build
- Adding "node_modules" parsing for Stylus Require/Import Statements
- Add autoprefixer
- Add
./node_modules
to stylus include paths
- Allow direct injection into document.head as a style tag + tests
- Clean up dependencies
- Add missing source folder
- Code and readme cleanup
- Replace new lines with spaces when inlining the css
- Add more robust support for resolving
.styl
file in node_modules
- Add .npmignore so
prepublish
works
- Initial release