diff --git a/src/transformers/index.js b/src/transformers/index.js index 9c7464e9..c6444ebd 100644 --- a/src/transformers/index.js +++ b/src/transformers/index.js @@ -26,8 +26,8 @@ exports.process = async (html, config) => { html = await attributeToStyle(html, config) html = await inline(html, config) html = await shorthandInlineCSS(html, config) - html = await removeInlinedClasses(html, config) html = await removeUnusedCSS(html, config) + html = await removeInlinedClasses(html, config) html = await removeInlineSizes(html, config) html = await removeInlineBgColor(html, config) html = await removeAttributes(html, config) diff --git a/test/test-transformers.js b/test/test-transformers.js index 59ba7342..cc6f06fe 100644 --- a/test/test-transformers.js +++ b/test/test-transformers.js @@ -416,6 +416,10 @@ test.only('remove inlined selectors', async t => { color: red; } + .ignore { + display: inline-block; + } + @media (max-width: 600px) { .ignore {color: blue} } @@ -459,10 +463,10 @@ test.only('remove inlined selectors', async t => { -
+

Title

-
text
+
text
`