Comments (10)
Hi,
May you paste your grunt's file?
Rgs.
from grunt-smushit.
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.
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.
It there any configuration i can use that would work?
Thanks :-)
from grunt-smushit.
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.
Just run 'npm update grunt-smushit'
Thanks
from grunt-smushit.
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.
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.
Thanks! I'll be watching this issue for updates.
from grunt-smushit.
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)
- Update to be grunt 0.4.x compatible HOT 2
- Multiple directories
- Grunt 0.4 Release HOT 4
- Scaffold grunt-init-gruntplugin
- Single file replacement HOT 1
- Output Folder
- Create service option HOT 1
- Enable Travis CI hook and insert image badge
- Refusing to install grunt-smushit as a dependency of itself HOT 3
- Linting tasks/smushit.js...ERROR HOT 2
- Other grunt tasks don't execute after smushit HOT 5
- Option for choice between lossless/lossy? HOT 3
- Wrong target path when used with cwd HOT 1
- Wrong output directory created when using current directory pattern (./) in src
- Option for "quieter" output? HOT 1
- Tries to compress .svn-base files HOT 3
- Deprecate project HOT 1
- Recreate folder structure in destination? HOT 8
- please donβt break when image not found 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-smushit.