Comments (3)
Hi @niksy,
I've not used grunt-newer myself, but if you were to add console.log(files);
after line 246 of the task, you will be able to see what files and directories are being passed into grunt-imageoptim.
One thing to be aware of is that if grunt-newer passes any directories, then grunt-imageoptim's behaviour is to process every image in that directory.
Thank you.
from grunt-imageoptim.
After testing some other conditions, I’ve also found out about grunt-imageoptim’s different behavior with directories and image files. Seems like using grunt-newer with explicitly defining images (e.g. **/*.{png,gif,jpg}
) is the way-to-go.
from grunt-imageoptim.
Yes! Worked for me, thanks.
from grunt-imageoptim.
Related Issues (20)
- Enable access for assistive devices issue HOT 9
- Fails when processing very large folders HOT 15
- 3.6hours later.... nothing was written HOT 6
- Image optim not installed HOT 3
- prevent generation loss? HOT 3
- Need to make some corrections to README file
- Integration with grunt-newer and similar HOT 2
- Is it possible to gather the binaries from deps? HOT 3
- Confusion about files settings HOT 3
- New version of imageoptim-cli breaks Jpegmini functionality HOT 2
- Imageoptim opening gui HOT 1
- JPEGmini not working - imageoptim-cli v1.11.6 :: grunt-imageoptim v1.4.1 :: Grunt v0.4.5 :: JPEGmini v1.9.0 HOT 1
- ImageAlpha doesn't appear to be running HOT 2
- Problem with Grunt HOT 2
- Only seeing "kb" as output after running grunt task HOT 1
- Output to different destination?
- quitAfter: false not working
- Crashes grunt if no images are found in one or more folders
- Features requested HOT 1
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 grunt-imageoptim.