whatisgithub

What is rollup-plugin-postcss-webpack-alias-less-loader?

fieldju/rollup-plugin-postcss-webpack-alias-less-loader — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2021-06-22

2JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

In one sentence

A Rollup plugin that lets Less stylesheets use webpack-style import shortcuts (like the tilde for node_modules), so the same aliases work in both build tools.

Mindmap

mindmap
  root((repo))
    What it does
      Resolves webpack aliases
      Works inside Less imports
      Bridges Rollup and webpack
    Tech stack
      JavaScript
      Rollup plugin
      Less
    Use cases
      Migrate webpack to Rollup
      Share alias config
      Build dual module libraries
    Audience
      Library authors
      Build tool maintainers
    Setup
      Reuse webpack alias config
      Plug into Rollup build

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

What do people build with it?

USE CASE 1

Reuse an existing webpack alias config so tilde-style Less imports also work in a Rollup build.

USE CASE 2

Migrate a project from webpack to Rollup without rewriting stylesheet import paths.

USE CASE 3

Build both CommonJS and ES module bundles with Rollup while keeping one shared set of import shortcuts.

USE CASE 4

Keep component library build configs DRY across teams using multiple bundlers.

What is it built with?

JavaScriptRollupLesswebpack

How does it compare?

fieldju/rollup-plugin-postcss-webpack-alias-less-loader3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-06-222021-09-252021-02-06
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedeveloperresearcherdeveloper

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

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires an existing webpack alias config to port over for full benefit.

Copy-paste prompts

Prompt 1
Show me how to configure rollup-plugin-postcss-webpack-alias-less-loader using aliases pulled from my existing webpack config.
Prompt 2
Help me set up a Rollup build that resolves tilde-prefixed Less imports like webpack does.
Prompt 3
Write a Rollup config that builds both CommonJS and ES module output while sharing Less import aliases with webpack.
Prompt 4
Explain how this plugin intercepts Less @import statements before Rollup processes them.

Frequently asked questions

What is rollup-plugin-postcss-webpack-alias-less-loader?

A Rollup plugin that lets Less stylesheets use webpack-style import shortcuts (like the tilde for node_modules), so the same aliases work in both build tools.

What language is rollup-plugin-postcss-webpack-alias-less-loader written in?

Mainly JavaScript. The stack also includes JavaScript, Rollup, Less.

Is rollup-plugin-postcss-webpack-alias-less-loader actively maintained?

Dormant — no commits in 2+ years (last push 2021-06-22).

How hard is rollup-plugin-postcss-webpack-alias-less-loader to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is rollup-plugin-postcss-webpack-alias-less-loader for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.