Code Monkey home page Code Monkey logo

gulp-tinypng's Issues

error

[14:19:24] Starting 'tinypng'...
[14:19:27] [error] : gulp-tinypng - Credentials are invalid

[14:20:27] Starting 'tinypng'...
[14:21:44] [error] : gulp-tinypng - Upload failed to complete

Wrong output folder

The plugin is outputting all images to a folder called .gulp instead of what was declared on the gulp task.

Would also be nice if the plugin could preserve the original directory structure, instead of outputting everything into a single folder.

Ugly typo

Hi ;)

At many places, even in the console, I saw your plugin called gulp-tingpng. Can you replace/update that?

Thanks in advance

so much deprecated sub-modules

As you can see in the image below, I got a message from the terminal about "outdated" sub-modules:

+ [email protected]
added 115 packages from 54 contributors and audited 14225 packages in 32.343s
found 25 vulnerabilities (3 low, 14 moderate, 8 high)
  run `npm audit fix` to fix them, or `npm audit` for details

2019-02-22_21-47-09

api of your respository in npm is wrong

here is your npm api
var gulp = require('gulp');
var imagemin = require('gulp-tinypng');
gulp.task('tinypng', function () {
gulp.src('src/image.png')
.pipe(tingpng('API_KEY'))
.pipe(gulp.dest('dist'));
});

I change it to this, and it works.
var gulp = require('gulp');
var imagemin = require('gulp-tinypng');
gulp.task('tinypng', function () {
gulp.src('./images/tinypng/*.{jpg,png,gif,jpeg}')
.pipe(tinypng('API_key'))
//api_key may need to buy?
.pipe(gulp.dest('./images'));
});

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.