message: Reworked CSS building to output unminified version as well
diff: /* eslint-env node */
  -var gulp = require("gulp"),
  - autoprefixer = require("gulp-autoprefixer"),
  - cleanCSS = require("gulp-clean-css"),
  - concat = require("gulp-concat"),
  - connect = require("gulp-connect"),
  - rename = require("gulp-rename"),
  - ts = require("gulp-typescript"),
  - uglify = require("gulp-uglify");
  +const gulp = require("gulp");
  +const autoprefixer = require("gulp-autoprefixer");
  +const cleanCSS = require("gulp-clean-css");
  +const concat = require("gulp-concat");
  +const connect = require("gulp-connect");
  +const rename = require("gulp-rename");
  +const ts = require("gulp-typescript");
  +const uglify = require("gulp-uglify");
  -gulp.task("copy:css", function () {
  - return gulp
  - .src("src/imagelightbox.css")
  - .pipe(gulp.dest("docs/stylesheets/"));
  -});
  -
  -gulp.task(
  - "minify:css",
  - gulp.series("copy:css", function () {
  +gulp.task("build:css:copy", function () {
  return gulp
  .src("src/imagelightbox.css")
  .pipe(
  @@ -25,11 +17,19 @@ gulp.task(
  cascade: false,
  })
  )
  + .pipe(gulp.dest("dist"))
  + .pipe(gulp.dest("docs/stylesheets/"));
  +});
  +
  +gulp.task("build:css:minify", function () {
  + return gulp
  + .src("dist/imagelightbox.css")
  .pipe(cleanCSS())
  - .pipe(rename("imagelightbox.min.css"))
  + .pipe(rename({ suffix: ".min" }))
  .pipe(gulp.dest("dist/"));
  - })
  -);
  +});
  +
  +gulp.task("build:css", gulp.series("build:css:copy", "build:css:minify"));
  gulp.task("copy:js", function () {
  var tsProject = ts.createProject("tsconfig.json");
  @@ -53,7 +53,7 @@ gulp.task(
  })
  );
  -gulp.task("build", gulp.parallel("minify:css", "minify:js"));
  +gulp.task("build", gulp.parallel("build:css", "minify:js"));
  gulp.task("watch", function (done) {
  gulp.watch(["docs/*.html", "src/**/*"], gulp.series("build"));
  