Code Monkey home page Code Monkey logo

Comments (10)

heldr avatar heldr commented on July 1, 2024

Hi,

May you paste your grunt's file?

Rgs.

from grunt-smushit.

lmartins avatar lmartins commented on July 1, 2024

Sure thing:

module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
    lint: {
        all: ['grunt.js', 'js/vendors/*.js']
    },
    concat: {
        dist: {
            src: ['js/vendors/bootstrap/*.js'],
            dest: 'js/bootstrap.js',
            separator: ';'
        }
    },
    min: {
        dist: {
            src: ['js/vendors/bootstrap/*.js'],
            dest: 'js/bootstrap.min.js',
            separator: ';'
        }
    },
    jshint: {
        options: {
            browser: true
        }
    },
    unicon: {
        src: "images/icons-src",
        dest: "images/icons-dist"
    },
    smushit:{
        path: {
            src:'images/layout',
            dest:'images/dist'
        }
    }
});

// Load tasks from "grunt-sample" grunt plugin installed via Npm.
grunt.loadNpmTasks('grunt-unicon');
grunt.loadNpmTasks('grunt-smushit');

// Default task.
grunt.registerTask('default', 'lint concat min unicon smushit');

};

Thank you.

from grunt-smushit.

heldr avatar heldr commented on July 1, 2024

There's a bug which smushit don't move not optimized files. I'll force it and callback you when it done

from grunt-smushit.

lmartins avatar lmartins commented on July 1, 2024

It there any configuration i can use that would work?
Thanks :-)

from grunt-smushit.

heldr avatar heldr commented on July 1, 2024

Not yet, sorry!

The only approach is moving all files to dest path and config smushit to replace it (As described on path:{} example https://github.com/heldr/grunt-smushit#documentation )

Anyway, I wil try to fix it today.

Thanks

from grunt-smushit.

heldr avatar heldr commented on July 1, 2024

Just run 'npm update grunt-smushit'

Thanks

from grunt-smushit.

lmartins avatar lmartins commented on July 1, 2024

Hi again,

It now creates the images and as far as i can tell my images folder went from 2.4Mb to 2.2Mb.

Still, the command line shows me for every image something like:
[smushit] item: images/dist/temp/home_featMain_002.jpg error: No files were uploaded

and at the end:
[smushit] smushit completed: total 106, saving 0

Is it normal?

from grunt-smushit.

heldr avatar heldr commented on July 1, 2024

Hi,

When you run it a bunch of times you would get more images optimized. I think there are some troubles with smushit web service and I'm also checking it with the node-smushit creator.

Thanks.

from grunt-smushit.

lmartins avatar lmartins commented on July 1, 2024

Thanks! I'll be watching this issue for updates.

from grunt-smushit.

heldr avatar heldr commented on July 1, 2024

I've made a lot of tests with grunt 0.4 and now its running perfect.

Maybe it was related with Yahoo Smushit web service outage.

Thanks for the feedback

from grunt-smushit.

Related Issues (20)

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.