Commit 41a4738b authored by Dipesh Bathaja's avatar Dipesh Bathaja

Update

parent da018e33
Pipeline #1288 skipped
# Image Assets
If you are using images (jpgs, pngs, gifs, svgs, etc.), this is the place to put them.
If you don't plan using images, feel free to delete this folder and the `tasks.images` config in `gulpfile.js/config.json`.
### Tasks and Files
```
gulpfile.js/tasks/images
```
The image task will copy them over to the destination specified in `config.json`, and run lossless optimizations and compression on them. File names will be reved in production builds (if enabled).
......@@ -25,7 +25,7 @@ function buildHtmlTask(done: any) {
.pipe(plugins.nunjucksRender({ path: [HTML_CONFIG.src], envOptions: { watch: false } }));
getAssetsPlaceholders().forEach(placeholder => {
stream = stream.pipe(plugins.inject(getPlaceholderAssetsSrc(placeholder), { name: placeholder, ignorePath: `/${DEST_DIR}` }))
stream = stream.pipe(plugins.inject(getPlaceholderAssetsSrc(placeholder), { name: placeholder, relative: true, ignorePath: `/${DEST_DIR}`, addRootSlash: false }))
});
return stream.pipe(plugins.htmlhint())
......
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