Commit 596cd53b authored by Ken Hawkins's avatar Ken Hawkins
Browse files

Add rewrite paths for images

parent f6d91be4
Pipeline #31090 passed with stages
in 2 minutes and 26 seconds
......@@ -106,7 +106,7 @@ gulp.task('apache-config', function(cb) {
require('fs').appendFileSync(fileName, 'AddOutputFilterByType DEFLATE text/html');
require('fs').appendFileSync(fileName, endOfLine); // new line
require('fs').appendFileSync(fileName, 'RewriteCond %{QUERY_STRING} !(^|&)q=');
return gulp.src(['dist/*.html','dist/**/*.html'])
return gulp.src(['dist/*.{html,jpg,png,gif,pdf}','dist/**/*.{html,jpg,png,gif,pdf}'])
.pipe(through.obj(function (file, enc, cb) {
const localFilePath = file.path.split('/dist/')[1];
gutil.log('Mapping: ',localFilePath));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment