Helper function to make tiny classnames for modular-css. Creates shorter names than modular-css-namer.
Inspired by chielkunkels. Tries to generate strings that start with the same substring to help gzip compression.
npm install --save modular-css-short-namer
var Processor = require("modular-css-core"),
processor = new Processor({
namer : require("modular-css-short-namer")()
});
// ...
build.plugin("modular-cssify", {
css : "./style.css",
namer : require("modular-css-short-namer")()
});
// ...
rollup({
entry : "./index.js",
plugins : [
require("modular-css-rollup")({
css : "./gen/index.css",
namer : require("modular-css-short-namer")()
})
]
});
modular-css-short-namer is licensed under the MIT License.