Miss any of our Open RFC calls?Watch the recordings here! »

gulp-mini-style-modules

1.0.8 • Public • Published

Description

This plugin for gulp allows to modularize style sheets and minify class names. Additionally module definitions can be generated.

Available Module Generators

  • C#

Usage

const gulp = require("gulp");
const csStyleModules = require("gulp-cs-style-modules");
 
var csmod = csStyleModules();
 
function loadModules() {
    return gulp.src("./Components/*.css")
        .pipe(csmod.loadModules())
        .pipe(gulp.dest("./out/"));
}
function generateDefinitions() {
    return csmod.generateDefinitions()
        .pipe(gulp.dest("./Components/"));
}
 
module.exports = {
    default: gulp.series(loadModules, generateDefinitions)
};

Install

npm i gulp-mini-style-modules

DownloadsWeekly Downloads

5

Version

1.0.8

License

ISC

Unpacked Size

9.5 kB

Total Files

14

Last publish

Collaborators

  • avatar