Skip to content

Commit

Permalink
Remove classPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Jan 7, 2014
1 parent 42cc5dc commit 2cbe435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,5 @@ svgmerge: {
}
```

#### classPrefix

Default: `iconic`
Type: `String`

Prefix class names coming from svg files. Ex: `class="arrow-lg"` becomes `class="iconic-arrow-lg"`.

```js
svgmerge: {
files: {
src: ['icons'],
dest: 'icons-out',
options: {
classPrefix: 'awesome'
}
}
}
```

## License
Copyright (c) 2014 Rob Dodson. Licensed under the MIT license.
6 changes: 2 additions & 4 deletions tasks/svg-merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ module.exports = function (grunt) {
var done = this.async();
var dest = this.data.dest;
var options = this.options({
outputSuffix: '-out',
classPrefix: 'iconic'
outputSuffix: '-out'
});

var promises = [];
Expand All @@ -43,8 +42,7 @@ module.exports = function (grunt) {
var opts = {
inputDir: dir,
outputDir: path.join(dest, name),
outputFile: outputFile,
classPrefix: options.classPrefix
outputFile: outputFile
};

svgMerge(opts, deferred.resolve);
Expand Down

0 comments on commit 2cbe435

Please sign in to comment.