Giter Club home page Giter Club logo

Comments (12)

vincentmac avatar vincentmac commented on August 19, 2024

There's an option for adding a base string. Take a look and see if that works for you.

from gulp-fingerprint.

binarykitchen avatar binarykitchen commented on August 19, 2024

Nope, these options do not work for me.

Again, in my .styl I have this:

background     url("/img/logo.png") no-repeat center center

in my gulp this:

.pipe(fingerprint(require(path.join(settings.server.paths.rev, 'img', 'rev-manifest.json')), {}))

in my json this:

{
  "logo.png": "logo-3ee25b13.png"
}

and the generates CSS is wrong:

background: url("/img/logo.png") no-repeat center center;

But when I customize the regex, then it works:

.pipe(fingerprint(require(path.join(settings.server.paths.rev, 'img', 'rev-manifest.json')), {
    regex: /url\("\/img\/([a-z-_.\d]*)"\)/gim
}))

from gulp-fingerprint.

kflorence avatar kflorence commented on August 19, 2024

Fixed by #8

from gulp-fingerprint.

binarykitchen avatar binarykitchen commented on August 19, 2024

thanks - when will you npm publish this?

from gulp-fingerprint.

vincentmac avatar vincentmac commented on August 19, 2024

Sorry, didn't realize that I didn't push the tagged version. It should be v0.3.2. Can you verify that npm installs the correct version for you?

from gulp-fingerprint.

binarykitchen avatar binarykitchen commented on August 19, 2024

Still not out there

from gulp-fingerprint.

vincentmac avatar vincentmac commented on August 19, 2024

I just checked on a co-workers computer, npm info is showing v0.3.2. Not sure what issue you are running into.

from gulp-fingerprint.

kflorence avatar kflorence commented on August 19, 2024

Yeah, it's working fine for me.
https://github.com/vincentmac/gulp-fingerprint/releases/tag/v0.3.2

from gulp-fingerprint.

vincentmac avatar vincentmac commented on August 19, 2024

If you're just doing an npm install gulp-fingerprint and your package.json lists a previous version, it will not update. You might need to update the version in your package.json and then run npm install again.

from gulp-fingerprint.

binarykitchen avatar binarykitchen commented on August 19, 2024

all good now, i didn't know i had the latest version. i ran an npm update yesterday. sorry.

testing now if the changes are good ...

from gulp-fingerprint.

vincentmac avatar vincentmac commented on August 19, 2024

Once you've verified that everything works, please close this issue.

from gulp-fingerprint.

binarykitchen avatar binarykitchen commented on August 19, 2024

thx, works fine!

from gulp-fingerprint.

Related Issues (15)

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.