1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-09 06:37:05 +02:00

Add changes from #140

This commit is contained in:
Felix
2020-05-26 21:35:34 -05:00
parent 44d3f6805a
commit ff9bf59b8a

View File

@@ -26,7 +26,7 @@ const postcssColorModFunction = require('postcss-color-mod-function').bind(null,
const paths = { const paths = {
srcDir: 'src/*', srcDir: 'src/*',
docs: { src: 'docs/**', dest: 'dist/docs' }, docs: { src: 'docs/**', dest: 'dist/docs' },
styles: { src: 'src/builds/*.css', dest: 'dist' }, styles: { src: 'src/builds/*.css', dest: 'dist', watch: 'src/**/*.css' }
} }
// https://stackoverflow.com/a/20732091 // https://stackoverflow.com/a/20732091
@@ -163,7 +163,7 @@ const browserReload = done => (browserSync.reload(), done())
const startDevServer = () => { const startDevServer = () => {
browserSync.init({ server: { baseDir: './dist' }, startPath: 'docs/index.html' }) browserSync.init({ server: { baseDir: './dist' }, startPath: 'docs/index.html' })
gulp.watch(paths.srcDir, gulp.series(style, browserReload)) gulp.watch(paths.styles.watch, gulp.series(style, browserReload))
gulp.watch(paths.docs.src, gulp.series(docs, browserReload)) gulp.watch(paths.docs.src, gulp.series(docs, browserReload))
} }