You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-11Lines changed: 37 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
This module renames all CSS selectors in the given files. It will collect all selectors from the given CSS files. Do not worry about your selectors, `rcs` will do it for you.
7
7
8
-
**NOT YET IMPLEMENTED**You can also use a config file, if you already had other projects with the same classes. So all your projects have the same minified selector names - always.
8
+
You can also use a config file with the combination of [generateMapping](#generateMapping) and [loadMapping](#loadMapping), if you already had other projects with the same classes. So all your projects have the same minified selector names - always.
9
9
10
10
## Contents
11
11
@@ -107,7 +107,8 @@ Let's exclude 4 classes and id's: `js`, `flexbox`, `canvas` and `svg`
> *Note:* if you are using the options either cssMapping or cssMappingMin must be set to true
176
+
> *Note:* if you are using the options either `cssMapping` or `cssMappingMin must be set to true. Both to `true` at the same time are not valid.
176
177
177
178
Generates mapping files: all minified, all original selectors or both. They are stored as object in a variable. The file is named as `renaming_map.js` or `renaming_map_min.js`.
178
179
179
180
Options:
180
181
181
-
- cssMapping (boolean): writes `renaming_map.js`. Default is `true`
182
-
- cssMappingMin (boolean): writes `renaming_map_min.js`. Default is `false`
182
+
-cssMapping (string |boolean): writes `renaming_map.js`. If it is a string, the string is the newfilename. Default is `true`
183
+
-cssMappingMin (string |boolean): writes `renaming_map_min.js`. If it is a string, the string is the newfilename. Default is `false`
183
184
-extended (boolean): instead of a string it writes an object with meta information. Default is `false`
184
-
- **NOT YET IMPLEMENTED** json (boolean): writes an json instead of a js. Default is `false`
185
+
-json (boolean): writes an json instead of a js. Default is `true`
0 commit comments