Plugin enabling ASPAX to handle Stylus files.
npm install aspax-styl-handlerA plugin that enables ASPAX to handle Stylus files.
npm install aspax-styl-handler
If you're running ASPAX in a Node.js application root folder, consider using the --save-dev option to avoid deploying this plugin to your production environment:
npm install aspax-styl-handler --save-dev
.styl source files in aspax.yml: app.css:
- lib.css
- styles-1.styl
- script-2.styl|nib
- nib: include support for nib CSS3 extensions - see more here.
With nib enabled, something like this:
button
border-radius 1px 2px / 3px 4px
button
border-radius 5px
button
border-radius bottom 10px
...will yield:
button {
-webkit-border-radius: 1px 2px/3px 4px;
-moz-border-radius: 1px 2px/3px 4px;
border-radius: 1px 2px/3px 4px;
}
button {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
button {
-moz-border-radius-topleft: 10px;
-webkit-border-top-left-radius: 10px;
border-top-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-webkit-border-bottom-right-radius: 10px;
border-bottom-right-radius: 10px;
}
@import statements and automatically trigger ASPAX to rebuild the parrent asset if one of the files in your import tree changes.
[npm-image]: https://img.shields.io/npm/v/aspax-styl-handler.svg?style=flat-square
[npm-url]: https://npmjs.org/package/aspax-styl-handler
[david-image]: http://img.shields.io/david/icflorescu/aspax-styl-handler.svg?style=flat-square
[david-url]: https://david-dm.org/icflorescu/aspax-styl-handler
[license-image]: http://img.shields.io/npm/l/aspax-styl-handler.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/aspax-styl-handler.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/aspax-styl-handler