Harderer / UnusedCssFinder-Sublime

Sublime Text 3 plugin to find unused css names
MIT License
5 stars 3 forks source link

[Bug] Active classes show as unused #4

Open Kristinita opened 7 years ago

Kristinita commented 7 years ago

1. Summary

I can not understand, how to use UnusedCSSFinder. Package select properties, which I use in my project.

2. Expected behavior

Select only properties, which I have not in my project.

3. Actual behavior

Select properties, which I have in my project.

4. Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I install UnusedCssFinder-Sublime via Package Control → I restart Sublime Text. For example, I have file style.css. In this file I run command: unused_css_finder {} → I get 18 «unused css names»:

command: unused_css_finder {}
.SashaHeader
.leftimg
.rightimg
.sidebar
.cover
.sidebar
.cover
.cover-text
.Sasha140
.Sasha280
.Sasha470
.Sasha700
.sidebar
.main-header
.nav-main
.nav-main
.sidebar
.content-wrapper
.
.SashaShadow
.SashaCenter
.SashaBlockquote
.SashaEpigraph
.SashaEpigraph
.SashaTOC
.SashaTOC
.SashaOlMargin
.SashaInline
.js
.SashaButton
.tooltipster-punk-purple
.tooltipster-box
.tooltipster-punk-aquamarine
.tooltipster-box

UnusedCSSFinder selection

But all properties I use in my project. For example, I use style.css in my Новые-недовольные-русские.html file. In Новые-недовольные-русские.html file I have SashaShadow and SashaEpigraph classes. But UnusedCSSFinder select .SashaShadow and .SashaEpigraph in my style.css file as unused.

5. Environment

Operating system and version: Windows 32-bit 10.0.14393 Sublime Text: Build 3126

Thanks.

Le-future commented 6 years ago

Hi,

Same here unfortunately...