28.0.0 • Published 2 years ago
@modular-css/shortnames v28.0.0
@modular-css/shortnames
Tiny classnames for modular-css
production builds!
Install
> npm install @modular-css/shortnames
Usage
JS API
const Processor = require("@modular-css/processor");
const processor = new Processor({
namer : require("@modular-css/shortnames")()
});
// ...
Browserify
build.plugin("@modular-css/browserify", {
css : "./style.css",
namer : require("@modular-css/shortnames")()
});
// ...
Rollup
rollup({
entry : "./index.js",
plugins : [
require("@modular-css/rollup")({
css : "./gen/index.css",
namer : require("@modular-css/shortnames")()
})
]
});
Example output
/* one.css */
.alert {}
.notification {}
/* two.css */
.title {}
.heading .subheading {}
becomes
/* output.css */
.AA {}
.AB {}
.BA {}
.BB .BC {}
28.0.0
2 years ago
27.1.0
2 years ago
27.0.3
2 years ago
27.0.0
3 years ago
26.0.0
3 years ago
25.0.0
5 years ago
24.2.1
5 years ago
24.0.0
5 years ago
23.0.0
5 years ago
22.1.4
5 years ago
22.1.0
5 years ago
22.0.0
5 years ago
21.1.1
5 years ago
21.0.0
5 years ago
20.0.0
5 years ago
19.0.0
5 years ago
18.0.0
5 years ago
17.1.2
5 years ago
17.0.0
6 years ago
16.0.0
6 years ago