Skip to content

MattAndDev/sass-unique-classes-rollup-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sass-unique-classes-rollup-plugin

This plugin is entirely focused on doing exactly three things:

  • compiles .s(c|a)ss) imports
  • create unique class names
  • run postcss plugins

it will always export an object with two properties:

raw the compiled, transformed, minimized source map object where keys are original classNames, values the unique ids

options

generateUniqueName

Function to manipulate css classes after compilation for unique css-module-alike name mapping.

prependData

String, pre-pended to every scss file compiled

postcssPlugins

Array, array of plugins to be passed to postcss

About

Plugin for an opinionated workflow

Resources

Stars

Watchers

Forks

Packages

No packages published