
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
pioner-ant-json-config
Advanced tools
JSON configuration for Ant design framework providing customized styling for components
Distribute ant configurations to multiple product teams.
npm i pioner-ant-json-config
yarn add pioner-ant-json-config
https://github.com/FormAPI/craco-antd
craco.config.js:
const CracoAntDesignPlugin = require("craco-antd");
const themeVariables = require('pioner-ant-json-config');
module.exports = {
plugins: [
{
plugin: CracoAntDesignPlugin,
options: {
customizeTheme: themeVariables
}
}
]
};
Follow advanced guide at: https://ant.design/docs/react/use-in-typescript
config-overrides.js:
const tsImportPluginFactory = require('ts-import-plugin')
const { getLoader, injectBabelPlugin } = require("react-app-rewired");
const rewireLess = require('react-app-rewire-less');
const themeVariables = require('pioner-ant-json-config');
module.exports = function override(config, env) {
const tsLoader = getLoader(
config.module.rules,
rule =>
rule.loader &&
typeof rule.loader === 'string' &&
rule.loader.includes('ts-loader')
);
tsLoader.options = {
getCustomTransformers: () => ({
before: [ tsImportPluginFactory({
libraryDirectory: 'es',
libraryName: 'antd',
style: true,
}) ]
})
};
config = rewireLess.withLoaderOptions({
javascriptEnabled: true,
modifyVars: themeVariables,
})(config, env);
return config;
}
Basically follow this: https://medium.com/@GeoffMiller/how-to-customize-ant-design-with-react-webpack-the-missing-guide-c6430f2db10f,
just switch themeVariables to correct source in webpack config. Also set javascriptEnabled: true
in less-loader.
FAQs
JSON configuration for Ant design framework providing customized styling for components
The npm package pioner-ant-json-config receives a total of 22 weekly downloads. As such, pioner-ant-json-config popularity was classified as not popular.
We found that pioner-ant-json-config demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.