Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
fix: names
Browse files Browse the repository at this point in the history
  • Loading branch information
Matb85 committed Jan 29, 2021
1 parent b8c23d3 commit 1619353
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const css_terser_1 = __importDefault(require("css-terser"));
const shortercss_1 = __importDefault(require("shortercss"));
const event_stream_1 = require("event-stream");
const gulp_util_1 = __importDefault(require("gulp-util"));
class GulpCssTerser extends css_terser_1.default {
class GulpShorterCSS extends shortercss_1.default {
run() {
const miniSelectors = (file, callback) => {
const extensions = file.path.split(".");
Expand All @@ -32,8 +32,8 @@ class GulpCssTerser extends css_terser_1.default {
}
}
module.exports = {
GulpCssTerser,
GulpShorterCSS,
init(config) {
return new GulpCssTerser(config);
return new GulpShorterCSS(config);
},
};
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
import ShorterCSS from "css-terser";
import { Config } from "css-terser/src/index";
import ShorterCSS from "shortercss";
import { Config } from "shortercss/src/index";
import { map } from "event-stream";
import utils from "gulp-util";

Expand Down
2 changes: 1 addition & 1 deletion test/example/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { src, dest } = require("gulp");
// setting up the plugin: running the init methos with a path to the config file as an argument
const CssTerser = require("../../dist").init("/test/example/cssterser.config.js");
const CssTerser = require("../../dist").init("/test/example/shortercss.config.js");

exports.default = function() {
return (
Expand Down
File renamed without changes.

0 comments on commit 1619353

Please sign in to comment.