Stop clean-css from changing 'Crimson' to #dc143c in { font-type: 'Crimson Text' }

81 Views Asked by At

My project uses React, Isomorphic rendering, Gulp, and Webpack. We will be removing Gulp, but until then...

I am using the styl for css/sass and I'm having an issue. I bring in a local npm package which uses precompiled css. My project is dependent on this package.

When gulp-clean-css (which uses clean-css) compiles my main project, it is replacing font-family: 'Crimson Text', serif from the npm package with font-family: "#dc143c Text , serif" and I am having issues figuring out how to prevent it. This clean-css link will be of use I believe ? Any advice is appreciated!

0

There are 0 best solutions below