Git Product home page Git Product logo

Comments (5)

somerandomdude avatar somerandomdude commented on August 25, 2024

I'll look into this. Thanks!

P.J.

On Jul 10, 2013, at 12:34 AM, Vibin reddy [email protected] wrote:

Here's the snippet from my Grunt.js

dist:{
  files: [{
    expand: true, 
    cwd: 'src/img',
    src:['*.jpg'],
    dest:'src/img/',
    ext:'.jpg.webp'
    }],
},
  options:{
    quality:85,
},

},
When ever I run grunt webp, folders with name as [filename].jpg.webp get created and the actual .webp files reside inside them.

I don't want this to happen. I want my actual webp files to have the name [filename].jpg.webp and no extra folders should be created (as the dest is already mentioned).


Reply to this email directly or view it on GitHub.

from grunt-webp.

vibin avatar vibin commented on August 25, 2024

Any progress?

I can see that this line in the webp.js file is creating folders. But I'm a beginner at Javascript stuff, so not really sure.

grunt.file.mkdir(dest);

from grunt-webp.

somerandomdude avatar somerandomdude commented on August 25, 2024

Not yet. It's on my list of things to do, but I haven't had time to look at it yet.
P.J.

On Mon, Jul 15, 2013 at 7:39 AM, Vibin reddy [email protected]
wrote:

Any progress?
I can see that this line in the webp.js file is creating folders. But I'm a beginner at Javascript stuff, so not really sure.

grunt.file.mkdir(dest);

Reply to this email directly or view it on GitHub:
#4 (comment)

from grunt-webp.

wiktor-k avatar wiktor-k commented on August 25, 2024

As far as I can see the bug exists in version 0.0.1 but is fixed in 0.0.2. The problem is 0.0.2 is not in npm repository so people by default download the buggy 0.0.1 release.

from grunt-webp.

TonySpegel avatar TonySpegel commented on August 25, 2024

As far as I can tell I have version "grunt-webp": "0.0.4" and it still creates unnecessary folders:

src: '_source_images/*.jpg',
dest: 'webp_images/'

creates _source_images IN webp_images wich in fact i don't want it to do.

Also that's over a year old... and still not fixed? ok..

from grunt-webp.

Related Issues (8)

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.