From aa70f707d9f4dabb2cd74f43307b611b9d5c05fd Mon Sep 17 00:00:00 2001 From: Svante Richter <svante.richter@gmail.com> Date: Sun, 28 Mar 2021 17:13:32 +0200 Subject: [PATCH 1/2] Remove sourcemap references from built files --- gulpfile.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 569b8c7..34ee92e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -58,7 +58,6 @@ const style = () => { return ( gulp .src(paths.styles.src) - .pipe(sourcemaps.init()) .pipe(postcss([postcssImport(), postcssColorModFunction(), postcssInlineSvg()])) .pipe(startDiff()) @@ -69,12 +68,9 @@ const style = () => { .pipe(postcss([autoprefixer()])) .pipe(endDiff('autoprefixer')) - .pipe(sourcemaps.write('.')) .pipe(flatten()) // Put files in out/*, not out/builds/* .pipe(gulp.dest(paths.styles.dest)) - .pipe(filter('**/*.css')) // Remove sourcemaps from the pipeline - // <minifying> .pipe(startDiff()) .pipe(postcss([cssnano({ preset: ['default', { svgo: { floatPrecision: 0 } }] })])) @@ -82,11 +78,9 @@ const style = () => { .pipe(rename({ suffix: '.min' })) // </minifying> - .pipe(sourcemaps.write('.')) .pipe(gulp.dest(paths.styles.dest)) .pipe(gulp.dest(paths.docs.dest + '/water.css')) - .pipe(filter('**/*.css')) // Remove sourcemaps from the pipeline .pipe(sizereport({ gzip: true, total: false, title: 'SIZE REPORT' })) .pipe(browserSync.stream()) ) From 21e1e5d95e7bed12bbe28c68f8d5c18c54ffa0df Mon Sep 17 00:00:00 2001 From: Kognise <felix.mattick@gmail.com> Date: Wed, 11 Aug 2021 13:11:01 -0400 Subject: [PATCH 2/2] Create itchy-hairs-beg.md --- .changeset/itchy-hairs-beg.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/itchy-hairs-beg.md diff --git a/.changeset/itchy-hairs-beg.md b/.changeset/itchy-hairs-beg.md new file mode 100644 index 0000000..3f96d6f --- /dev/null +++ b/.changeset/itchy-hairs-beg.md @@ -0,0 +1,5 @@ +--- +"water.css": patch +--- + +Remove sourcemap references from built files