
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
gatsby-plugin-less
Advanced tools
Provides drop-in support for Less stylesheets
yarn add gatsby-plugin-less
gatsby-config.js
file.// in gatsby-config.js
plugins: [`gatsby-plugin-less`];
If you need to pass options to Less use the plugins options; see less-loader for all available options.
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-less`,
options: {
strictMath: true,
},
},
];
Using CSS modules requires no additional configuration. Simply prepend .module
to the extension. For example: App.less
-> App.module.less
.
Any file with the module
extension will use CSS modules.
PostCSS is also included to handle some default optimizations like autoprefixing a and common cross-browser flexbox bugs. Normally you don't need to think about it, but if you'd prefer to add additional postprocessing to your Less output you can sepecify plugins in the plugin options
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-less`,
options: {
postCssPlugins: [somePostCssPlugin()],
},
},
];
FAQs
Gatsby plugin to add support for using Less
The npm package gatsby-plugin-less receives a total of 3,643 weekly downloads. As such, gatsby-plugin-less popularity was classified as popular.
We found that gatsby-plugin-less demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
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.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.