
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@kkt/less-modules
Advanced tools
Use create-react-app to build react libraries. Support for regular less files and *.module.less files. This package contains a plugin for using Less with kkt.
yarn add --dev @kkt/less-modules
# or use npm if you don't have yarn yet
npm install --save-dev @kkt/less-modules
In the .kktrc.js or .kktrc.ts you created for kkt add this code:
import lessModules from '@kkt/less-modules';
export default (conf, evn, options) => {
conf = lessModules(conf, evn, options);
// with loaderOptions
conf = lessModules.withLoaderOptions({
modifyVars: {
"@primary-color": "#1890ff",
},
})(config, env, options);
return conf;
}
In package.json, add a separate npm script to build library
{
"scripts": {
...
"bundle": "kkt build --bundle",
"bundle:min": "kkt build --bundle --mini",
...
}
}
And you can now use CRA to build your library
import lessModules from '@kkt/less-modules';
export default (conf, evn, options) => {
// with loaderOptions
conf = lessModules.withLoaderOptions({
lessOptions: {
modifyVars: {
"@primary-color": "#1890ff",
},
}
})(conf, env, options);
return conf;
}
Licensed under the MIT License
FAQs
Support for regular less files and *.module.less files.
The npm package @kkt/less-modules receives a total of 163 weekly downloads. As such, @kkt/less-modules popularity was classified as not popular.
We found that @kkt/less-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.