@@ -30,11 +30,11 @@ yarn add rename-css-selectors
3030## Usage
3131
3232``` js
33- const rcs = require (' rename-css-selectors' );
33+ const rcs = require (' rename-css-selectors' )
3434
3535// if you have some generated mappings - load them!
3636// you can also specify the string although it does not exist yet.
37- rcs .loadMapping (' ./renaming_map.json' );
37+ rcs .loadMapping (' ./renaming_map.json' )
3838
3939// first you have to process the css files
4040// to get a list of variables you want to minify
@@ -50,9 +50,9 @@ rcs.processCss('**/*.css', options, err => {
5050 // do not worry, your old settings are still here, in case you used `loadMapping`
5151 rcs .generateMapping (' ./' , { overwrite: true }, err => {
5252 // the mapping file is now saved
53- });
54- });
55- });
53+ })
54+ })
55+ })
5656```
5757
5858## RCS config
@@ -141,7 +141,7 @@ const rcs = require('rename-css-selectors')
141141rcs .processCss (' **/*.css' , options, err => {
142142 if (err) return console .error (err)
143143
144- console .log (' Successfully wrote new files and stored values' );
144+ console .log (' Successfully wrote new files and stored values' )
145145}
146146` ` `
147147
@@ -171,7 +171,7 @@ const rcs = require('rename-css-selectors')
171171rcs .process (' **/*.js' , options, err => {
172172 if (err) return console .error (err)
173173
174- console .log (' Successfully wrote new files' );
174+ console .log (' Successfully wrote new files' )
175175}
176176` ` `
177177
@@ -188,7 +188,7 @@ Options:
188188- cssMapping (string | boolean): writes ` renaming_map .json ` . If it is a string, the string is the new file name. Default is ` true `
189189- cssMappingMin (string | boolean): writes ` renaming_map_min .json ` . If it is a string, the string is the new file name. Default is ` false `
190190- extended (boolean): instead of a string it writes an object with meta information. Default is ` false `
191- - json (boolean): writes a ` json` instead of a ` js` . Default is ` true `
191+ - json (boolean): writes a ` json` instead of a ` js . Default is ` true`
192192- overwrite (boolean): if it should overwrite the existing mapping . Default is ` false`
193193
194194` ` ` js
@@ -198,7 +198,7 @@ const rcs = require('rename-css-selectors')
198198rcs.generateMapping('./mappings', options, err => {
199199 if (err) return console.error(err)
200200
201- console .log (' Successfully wrote mapping files' );
201+ console.log('Successfully wrote mapping files')
202202}
203203` ` `
204204
@@ -229,11 +229,11 @@ const rcs = require('rename-css-selectors')
229229// loadMapping is synchronous
230230// the first parameter can be either a string to the file
231231// or the json object directly
232- rcs .loadMapping (' ./renaming_map.json' , options);
232+ rcs.loadMapping('./renaming_map.json', options)
233233
234234rcs.process('**/*.html', err => {
235235 ...
236- });
236+ })
237237` ` `
238238
239239### includeConfig
0 commit comments