Is there a way to eliminate redundant styles in individual css files that are already defined in a common.css file?
common.css contains the following styles.
.nav {
background-color: red;
}
home.css includes the following styles.
.nav {
background-color: red;
}
.home {
width: 300px;
}
I want to update the home.css using a gulp task to remove the duplicate class .nav (since it is already defined in common.css). After making changes to the home.css file, I expect the following output.
.home {
width: 300px;
}
I do not want to alter the common.css file. Is there a node package you can recommend for this task?