1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-10 23:24:08 +02:00

dist/ -> out/

This commit is contained in:
Kognise
2020-10-01 13:42:13 -04:00
parent 3b94bb4bf3
commit 7341679dd5
31 changed files with 2894 additions and 20 deletions

View File

@@ -23,8 +23,8 @@ const postcssColorModFunction = require('postcss-color-mod-function').bind(null,
})
const paths = {
docs: { src: 'docs/**', dest: 'dist/docs' },
styles: { src: 'src/builds/*.css', dest: 'dist', watch: 'src/**/*.css' }
docs: { src: 'docs/**', dest: 'out/docs' },
styles: { src: 'src/builds/*.css', dest: 'out', watch: 'src/**/*.css' }
}
// https://stackoverflow.com/a/20732091
@@ -70,7 +70,7 @@ const style = () => {
.pipe(endDiff('autoprefixer'))
.pipe(sourcemaps.write('.'))
.pipe(flatten()) // Put files in dist/*, not dist/builds/*
.pipe(flatten()) // Put files in out/*, not out/builds/*
.pipe(gulp.dest(paths.styles.dest))
.pipe(filter('**/*.css')) // Remove sourcemaps from the pipeline
@@ -132,7 +132,7 @@ const browserReload = (done) => {
}
const startDevServer = () => {
browserSync.init({ server: { baseDir: './dist/docs' } })
browserSync.init({ server: { baseDir: './out/docs' } })
gulp.watch(paths.styles.watch, gulp.series(style, browserReload))
gulp.watch(paths.docs.src, gulp.series(docs, browserReload))