7.0.0 • Published 2 years ago
grunt-svgmin v7.0.0
grunt-svgmin
Minify SVG using SVGO
Issues with the output should be reported on the SVGO issue tracker.
Install
npm install --save-dev grunt-svgmin
Usage
require('load-grunt-tasks')(grunt);
grunt.initConfig({
svgmin: {
options: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
sortAttrs: false
}
}
}
]
},
dist: {
files: {
'dist/unicorn.svg': 'app/unicorn.svg'
}
}
}
});
grunt.registerTask('default', ['svgmin']);
Options
The provided options are passed directly to SVGO.
Note
Per-file savings are only printed in verbose mode (grunt svgmin --verbose
).
7.0.0
2 years ago
6.0.1
5 years ago
6.0.0
6 years ago
5.0.0
8 years ago
4.0.0
9 years ago
3.3.0
9 years ago
3.2.0
9 years ago
3.1.2
10 years ago
3.1.1
10 years ago
3.1.0
10 years ago
3.0.0
10 years ago
2.0.1
10 years ago
2.0.0
11 years ago
1.0.0
11 years ago
0.4.0
11 years ago
0.3.1
11 years ago
0.3.0
12 years ago
0.2.1
12 years ago
0.2.0
12 years ago
0.1.0
12 years ago