-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
When I run as below and view renaming-map-min I get a lot of one letter selectors assigned to unused css selectors.
Similarly, the ordering does not reflect the frequency - I have very common selectors given two letters, and rare (or unused) selectors given one letter.
async function autoRenameCssClasses() {
const rcsCore = require('rcs-core');
const rcs = require('rename-css-selectors');
const rcsOptions = {
overwrite: false, // we do not want to overwrite the html file.
cwd: outdir,
newPath: new-path,
// optimize: true //It's supposed to be on by default.
}
try {
await rcs.process.auto(['my-file.html', 'my-javascript.js'],
rcsOptions);
await rcs.mapping.generate('./', {
overwrite: true, // We want to always overwrite the mapping file.
origValues: false,
fileName: 'renaming-map-min'
});
} catch (err) {
console.log('error in rcs', err);
}
}Metadata
Metadata
Assignees
Labels
No labels