Giter Site home page Giter Site logo

gulp-assetpaths's People

Contributors

geo242 avatar qwales1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp-assetpaths's Issues

Handle live internet image sources

Use something like node-image-scraper to get the image as a vinyl pipe, store it somewhere (images/approximate-title.jpg) and inject it into the build html / css.

customAttributes: srcset path replacement works on first entry only

With an image such as
<img data-widths="[56,112]" data-sizes="auto" data-srcset="/asset/img/dummy_avatar_56.jpg 56w, /asset/img/dummy_avatar.jpg 112w" class="lazyload avatar__img" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="/>

only the first path is replaced although srcset (here as data-srcset being polyfilled) is usually a list of paths, so this returns
<img data-widths="[56,112]" data-sizes="auto" data-srcset="//dummy.com/asset/img/dummy_avatar_56.jpg 56w, /asset/img/dummy_avatar.jpg 112w" class="lazyload avatar__img" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="/>

doesn't work in native srcset either which I'd expect to be handled as a default attribute to look at.

templates set false but replace with url,but I don't want to be replaced.

The demo is below:
angularjs ng-src I don't want to be replace but the second gift.award_img_url has been to be replaced.

<div class="ui-col-tab"> <span class="company-logo"> <img ng-src="{{companyInfo.corp_sqare_log_url}}"> <img ng-src="{{gift.award_img_url}}" class="gift-img mr10 ml10"> </span> <span class="company-name">{{companyInfo.corp_name}}</span> </div>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.