mirror of
https://github.com/kognise/water.css.git
synced 2025-04-25 11:43:14 +02:00
Merge branch 'master' into master
This commit is contained in:
commit
cf12bc7d48
5
.changeset/itchy-hairs-beg.md
Normal file
5
.changeset/itchy-hairs-beg.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"water.css": patch
|
||||
---
|
||||
|
||||
Remove sourcemap references from built files
|
@ -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())
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user