mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 04:58:07 +00:00
@@ -1 +1,3 @@
|
|||||||
--ignore-dir=public
|
--ignore-dir=public
|
||||||
|
--ignore-dir=static
|
||||||
|
--ignore-dir=src/img
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ gulp.task('init-watch', () => {
|
|||||||
server: {
|
server: {
|
||||||
baseDir: 'public'
|
baseDir: 'public'
|
||||||
},
|
},
|
||||||
port: 9020,
|
port: 9001,
|
||||||
open: false
|
open: false
|
||||||
});
|
});
|
||||||
$.watch('src/sass/**/*.scss', () => gulp.start('sass'));
|
$.watch('src/sass/**/*.scss', () => gulp.start('sass'));
|
||||||
@@ -82,7 +82,7 @@ gulp.task('hugo-preview', (cb) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hugo-dev', (cb) => {
|
gulp.task('hugo-dev', (cb) => {
|
||||||
return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=http://localhost:9020/'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=http://localhost:9001/'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
||||||
browserSync.reload();
|
browserSync.reload();
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user