Comments (12)
There's an option for adding a base
string. Take a look and see if that works for you.
from gulp-fingerprint.
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.
Fixed by #8
from gulp-fingerprint.
thanks - when will you npm publish this?
from gulp-fingerprint.
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.
Still not out there
from gulp-fingerprint.
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.
Yeah, it's working fine for me.
https://github.com/vincentmac/gulp-fingerprint/releases/tag/v0.3.2
from gulp-fingerprint.
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.
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.
Once you've verified that everything works, please close this issue.
from gulp-fingerprint.
thx, works fine!
from gulp-fingerprint.
Related Issues (15)
- Automatically call require when it's a path HOT 2
- Processing SVG font URLs HOT 4
- Not working when CSS is already compressed HOT 2
- v0.3.1 - options.verbose broken, ReferenceError: m is not defined HOT 1
- Be able to take in .pipe(rev.manifest()) HOT 1
- Smarter regex or options needed for this case HOT 1
- requiring rev-manifest HOT 2
- Stops in the middle without any output HOT 14
- Regex captures `url()` HOT 1
- Not working in srcset attribute HOT 2
- Not working in svg href="/img/_sprite-general.svg#icon-basket"
- Is this suitable for production?
- Fingerprint fails for URLs that do contain both double and single quotes
- Broken with Gulp v4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-fingerprint.