Socket
Socket
Sign inDemoInstall

babel-plugin-stylus-compiler

Package Overview
Dependencies
46
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-stylus-compiler

A Babel 6 plugin for compiling stylus files into css


Version published
Maintainers
1
Install size
16.8 MB
Created

Readme

Source

babel-plugin-stylus-compiler Build Status

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'

Install

npm i babel-plugin-stylus-compiler --save-dev

Usage

Babel config

{
  "plugins": ["babel-plugin-stylus-compiler"]
}

CLI

babel --plugins babel-plugin-stylus-compiler src/ --out-dir build

Change log

1.3.0

  • Add autoprefixer

1.2.0

  • Add ./node_modules to stylus include paths

1.1.0

  • Allow direct injection into document.head as a style tag + tests

1.0.6

  • Clean up dependencies

1.0.5

  • Add missing source folder

1.0.4

  • Code and readme cleanup

1.0.3

  • Replace new lines with spaces when inlining the css

1.0.2

  • Add more robust support for resolving .styl file in node_modules

1.0.1

  • Add .npmignore so prepublish works

1.0.0

  • Initial release

Keywords

FAQs

Last updated on 28 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc