mirror of
https://github.com/kognise/water.css.git
synced 2025-08-10 07:06:58 +02:00
Add changes from #140
This commit is contained in:
@@ -26,7 +26,7 @@ const postcssColorModFunction = require('postcss-color-mod-function').bind(null,
|
||||
const paths = {
|
||||
srcDir: 'src/*',
|
||||
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
|
||||
@@ -163,7 +163,7 @@ const browserReload = done => (browserSync.reload(), done())
|
||||
const startDevServer = () => {
|
||||
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))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user