gcg

gulp-css-gsub

A gulp module to minify CSS classes.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

76

Maintenance

Last Commit

2yrs ago

Contributors

2

Package

Dependencies

6

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

A gulp module to minify CSS class names.

Demo

Introduction

Gulp-css-gsub is a gulp module that rewrites your js and css files in order to reduce file size and obfuscate your code.

Benefits

  • protection the code from stealing
  • allows you find unused CSS rules it your app
  • smaller size of your CSS file (up to 40% off)

Installation

npm install gulp-css-gsub --save-dev

Usage

const gulp = require("gulp");
const cssGsub = require("gulp-css-gsub");
const rename = require("gulp-rename");

gulp.task("css-gsub", () => {
    return gulp.src("./dist/css/main.css")
            .pipe(cssGsub({ 
                jsIn: "./dist/js/app.js", 
                jsOut: "./dist/js/app.min.js",
                prefix: "d"
            }))
            .pipe(rename("main.min.css"))
            .pipe(gulp.dest("./dist/css"));
});

Examples

Examples

Authors and Contributors

Created in 2016 by Ruslan Prytula (@milworm).

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial