Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Fix path for build/watch on sections #2

Merged
merged 1 commit into from
Aug 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/build-sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var messages = require('./includes/messages.js');
* @static
*/
gulp.task('build:sections', function() {
var sectionsDir = config.src.sections;
var sectionsDir = config.src.sectionsDir;

if (fs.existsSync(sectionsDir)) { // eslint-disable-line node/no-deprecated-api
processAssets(sectionsDir);
Expand All @@ -42,7 +42,7 @@ gulp.task('watch:sections', function() {
unlinkEvents: ['unlinkDir']
});

chokidar.watch(config.src.sections, {ignoreInitial: true})
chokidar.watch(config.src.sectionsDir, {ignoreInitial: true})
.on('all', function(event, path) {
messages.logFileEvent(event, path);
eventCache.addEvent(event, path);
Expand Down