atrolov / grunt-revizor Goto Github PK
View Code? Open in Web Editor NEWGrunt plugin for compression CSS classes and identifiers
License: MIT License
Grunt plugin for compression CSS classes and identifiers
License: MIT License
Не отрабатывает для классов css, которые отвечают за логику и в js именуются как js-className--.
Их нет в css, потому что им там делать не чего. И такие классы не сжимаются :(
Какие варианты исправить данную ситуацию?
Is it possible to runt the tasks but disable these 2 options? Or use it as blank string? Like this:
revizor: {
options: {
compressFilePrefix: '', //or compressFilePrefix: false
nameSuffix: '' //or nameSuffix: false
},
....
}
Because I want to be able to select all of my class names, doesn't matter if it ends with __
or other pattern. Also, I don't want to rename the file after that, because there are other tasks involved, or simply because it doesn't make sense. I'll not be using index-min.html
, it's just index.html
.
Currently, if setting to false
, the output will be something like indexfalse.html
and if leave it as empty string, nothing happens.
compressFilePrefix: ''
and It does not add to the folder
dest: 'build/'
Why it does not work?
What am I doing wrong?
.b-tabmenu__item--active-- {
background-color: #f0f0f0;
font-size: 15px;
}
font-weight: bold;
color: #d0d0d0;
background: url("//img.imgsmail.ru/r/webagent/images/ny/text_fadeout.png")
}
transforms to
.VW4 {
background-color: #MNv;
font-size: 15px;
}
font-weight: bold;
color: #DEn;
background: url("//img.fiS.JXH/r/webagent/images/ny/text_fadeout.DUp")
}
says it's done without errors... but when i compare the original files to the destination files
they are identical...
anyone having this problem?
Сабж. Очень здорово было бы переписать и для gulp. Может кто-нибудь возьмется.
недочет Type: String Default value: '--', у меня так и ничего не завелось, пока я не указал явно: namePrefix: '--'
Прошу проверить :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.