Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit b732344

Browse files
doc(README): add documentation about basename option
1 parent 74387df commit b732344

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ The task will ensure that any source map for `.css` or `.js` file is revisioned
9999

100100
For example, `js/main.js` revisioned to `js/main.9d713a59.js` will also have `js/main.js.map` revisioned to the same hash `js/main.9d713a59.js.map`.
101101

102+
#### basename
103+
104+
Type: `boolean`
105+
Default: `false`
106+
107+
This option is useful when you are only interested about having a map of the transformation of the filename, which means the summary will only output the basename.
108+
109+
For example you would have the following map, without taking into account which directories original and revved files would be.
110+
```
111+
{
112+
'img1.png': 'img1.59bcc3ad.png',
113+
'img2.png': 'img2.060b1aa6.png'
114+
}
115+
```
116+
102117
## License
103118

104119
[BSD license](http://opensource.org/licenses/bsd-license.php) and copyright Google

0 commit comments

Comments
 (0)