Swap html image inline plugin
This commit is contained in:
parent
f2aa0c2366
commit
bcb013e39d
|
|
@ -29,7 +29,7 @@
|
||||||
"gulp-autoprefixer": "^4.0.0",
|
"gulp-autoprefixer": "^4.0.0",
|
||||||
"gulp-david": "^1.0.1",
|
"gulp-david": "^1.0.1",
|
||||||
"gulp-inline-css": "~3.1.0",
|
"gulp-inline-css": "~3.1.0",
|
||||||
"gulp-inline-image-html": "~0.2.1",
|
"gulp-inline-images-no-http": "^1.3.0",
|
||||||
"gulp-jsonlint": "^1.1.2",
|
"gulp-jsonlint": "^1.1.2",
|
||||||
"gulp-less": "^3.3.2",
|
"gulp-less": "^3.3.2",
|
||||||
"gulp-minify-html": "~1.0.5",
|
"gulp-minify-html": "~1.0.5",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ var gulp = require('gulp'),
|
||||||
Q = require('q'),
|
Q = require('q'),
|
||||||
del = require('del'),
|
del = require('del'),
|
||||||
jsonlint = require('jsonlint'),
|
jsonlint = require('jsonlint'),
|
||||||
inlineimg = require('gulp-inline-image-html'),
|
inlineimg = require('gulp-inline-images-no-http'),
|
||||||
path = require('path');
|
path = require('path');
|
||||||
|
|
||||||
function buildTask(options){
|
function buildTask(options){
|
||||||
|
|
@ -50,12 +50,14 @@ function buildTask(options){
|
||||||
return prev += '<link rel="stylesheet" href="' + cssPath + '">';
|
return prev += '<link rel="stylesheet" href="' + cssPath + '">';
|
||||||
}, '');
|
}, '');
|
||||||
|
|
||||||
|
console.log(cwd)
|
||||||
|
|
||||||
options
|
options
|
||||||
.src([cwd + '/**/*.html', '!' + cwd + '/**/*.inc.html'])
|
.src([cwd + '/**/*.html', '!' + cwd + '/**/*.inc.html'])
|
||||||
.pipe(preprocess({
|
.pipe(preprocess({
|
||||||
context: conf
|
context: conf
|
||||||
}))
|
}))
|
||||||
.pipe(inlineimg(cwd))
|
.pipe(inlineimg())
|
||||||
.pipe(inlineCss({
|
.pipe(inlineCss({
|
||||||
applyTableAttributes: true,
|
applyTableAttributes: true,
|
||||||
applyWidthAttributes: true,
|
applyWidthAttributes: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue