1. autoprefixer-stylus
autoprefixer for stylus
autoprefixer-stylus
Package: autoprefixer-stylus
Created by: jescalan
Last modified: Mon, 13 Jun 2022 03:50:50 GMT
Version: 1.0.0
License: MIT
Downloads: 25,421
Repository: https://github.com/jescalan/autoprefixer-stylus

Install

npm install autoprefixer-stylus
yarn add autoprefixer-stylus

Autoprefixer Stylus

An autoprefixer plugin for stylus.

npm
tests
coverage
dependencies

Installation

You can install through npm as such: npm install autoprefixer-stylus

Usage

You can include autoprefixer-stylus as a normal stylus plugin. Basic example below:

 const stylus = require('stylus')
const autoprefixer = require('autoprefixer-stylus')

stylus(css)
  .use(autoprefixer())
  .render(function(err, output) {
    console.log(output)
  })

This plugin also takes any of the options that autoprefixer normally takes. Example with overrideBrowswerslist below:

 stylus(css).use(autoprefixer({ overrideBrowserslist: ['ie 7', 'ie 8'] }))

By default, this plugin will display any warnings. You can disable this with the hideWarnings option. Example below:

 stylus(css)
  .use(autoprefixer({ hideWarnings: true });

If you'd like to install globally and run from the command line, you can do it like this:

 npm install -g autoprefixer-stylus
stylus -u autoprefixer-stylus -c example.styl

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code