Not working
indolering opened this issue · 2 comments
indolering commented
gulp.task('inlinesource', function () {
return gulp.src('./src/test.html')
.pipe(inlinesource())
.pipe(gulp.dest("./spx/test/"));
});
<!DOCTYPE html>
<html>
<head>
<script src="foo.js" type='text/javascript' inline></script>
</head>
<body>
</body>
</html>
function foo(){
console.log("foo");
}
Output:
<!DOCTYPE html>
<html>
<head>
<script src="foo.js" type='text/javascript'></script>
</head>
<body>
</body>
</html>
laneboysrc commented
Your gulpfile.js seems to be missing vital declerations:
var gulp = require("gulp");
var inlinesource = require('gulp-inline-source');
gulp.task('inlinesource', function () {
return gulp.src('./src/test.html')
.pipe(inlinesource())
.pipe(gulp.dest("./spx/test/"));
});
If that does not fix your issue please add the output gulp prints when run.
fmal commented
It should work fine now, thanks for reporting.