gitwtfhub

wtf is stylus-loader?

yyx990803/stylus-loader — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2016-05-31

3JavaScriptAudience · developerComplexity · 2/5Dormant

TL;DR

A webpack plugin that compiles Stylus stylesheets into standard CSS as part of your build pipeline.

Mindmap

mindmap
  root((repo))
    What it does
      Compiles Stylus to CSS
      Webpack loader plugin
      Feeds build pipeline
    Tech stack
      JavaScript
      Webpack
      Stylus
    Use cases
      Write concise stylesheets
      Use Stylus design frameworks
      Extend with plugins like nib
    Audience
      Frontend developers
      Webpack users
    Notes
      Requires separate Stylus install
      Pairs with style loader
      Auto imports from node_modules

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Write stylesheets in Stylus's shorter syntax and have webpack automatically compile them to CSS.

REASON 2

Import a Stylus-based design framework like Bootstrap Stylus directly from node_modules.

REASON 3

Combine stylus-loader with style-loader to inject compiled styles into the page automatically.

REASON 4

Extend Stylus with plugins like nib to get shortcuts for common browser CSS features.

What's in the stack?

JavaScriptWebpackStylus

How it stacks up

yyx990803/stylus-loaderamarjitjim/browserpilotandershaig/cssess
Stars333
LanguageJavaScriptJavaScriptJavaScript
Last pushed2016-05-312011-08-19
MaintenanceDormantDormant
Setup difficultymoderateeasy
Complexity2/53/51/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

Yoink these prompts

Prompt 1
Show me how to configure stylus-loader in my webpack config to compile .styl files.
Prompt 2
Help me set up stylus-loader together with style-loader so compiled CSS injects into the page automatically.
Prompt 3
Explain how to import a Stylus design framework's files from node_modules using this loader.
Prompt 4
Write a webpack rule that uses stylus-loader and the nib plugin for extra CSS shortcuts.

Frequently asked questions

wtf is stylus-loader?

A webpack plugin that compiles Stylus stylesheets into standard CSS as part of your build pipeline.

What language is stylus-loader written in?

Mainly JavaScript. The stack also includes JavaScript, Webpack, Stylus.

Is stylus-loader actively maintained?

Dormant — no commits in 2+ years (last push 2016-05-31).

Who is stylus-loader for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.