
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
poliobfusklot
Advanced tools
PoliObfusKlot — это инструмент для обфускации имен CSS-классов в вашем проекте. Он помогает защитить ваш код, уменьшая вероятность его чтения и понимания сторонними лицами, а также уменьшает размер файлов за счет сокращения имен классов.
Установите пакет как зависимость для разработки с помощью npm:
npm install --save-dev poliobfusklot
Создайте файл poliobfusklot.config.json в корневой директории вашего проекта со следующим содержимым:
{
"css": {
"directories": ["./css"],
"extensions": [".css"],
"exclude": []
},
"html": {
"directories": ["./"],
"extensions": [".html"],
"exclude": []
},
"js": {
"directories": ["./js"],
"extensions": [".js"],
"exclude": []
}
}
Измените пути и расширения в соответствии с вашим проектом.
В командной строке выполните:
poliobfusklot --config poliobfusklot.config.json
Или, если вы установили пакет локально:
npx poliobfusklot --config poliobfusklot.config.json
poliobfusklot.config.json в текущей директории.{
"css": {
"directories": ["src/styles"],
"extensions": [".css", ".scss"],
"exclude": ["src/styles/vendor"]
},
"html": {
"directories": ["public"],
"extensions": [".html"],
"exclude": []
},
"js": {
"directories": ["src/scripts"],
"extensions": [".js", ".jsx"],
"exclude": ["src/scripts/vendor"]
}
}
После обфускации создается файл classMappings.json, содержащий отображение исходных имен классов на обфусцированные. Этот файл полезен для отладки, но не рекомендуется включать его в продакшен-сборку.
Если вы хотите внести свой вклад в проект, ознакомьтесь с руководством по участию.
Этот проект лицензирован под лицензией MIT — подробности смотрите в файле LICENSE.
Разработано с ❤️ by Poliklot.
FAQs
Инструмент для обфускации CSS-классов в проектах.
We found that poliobfusklot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.