Answer the question
In order to leave comments, you need to log in
How to fix error while running "gulp pug" command?
when I do the gulp pug command - in the console there are errors:
SyntaxError: Invalid or unexpected token
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303: 10)
at Module._compile (internal/modules/cjs/loader.js:656:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load( internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529: 3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
Here is gulpfile.js
'use strict';
var gulp = require('gulp'),
pug = require('gulp-pug');
gulp.task('pug', function() {
return gulp.src('src/pug/pages/*.pug')
.pipe(pug({
pretty: true
}))
.pipe(gulp.dest('buld'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question