
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
storybook-preset-less
Advanced tools
One-line Less configuration for Storybook.
Based on @storybook/preset-scss.
npm install --save-dev storybook-preset-less css-loader less less-loader style-loader
Then add the following to .storybook/main.js:
module.exports = {
addons: ['storybook-preset-less'],
};
You can pass configurations by using Object addon declaration for storybook-preset-less and adding the configurations under the option key. You can pass configurations into the preset's webpack loaders using styleLoaderOptions, cssLoaderOptions, and lessLoaderOptions keys. See documentation for each respective loader to learn about valid options. You can register other addons through the string declaration as normal.
module.exports = {
addons: [
{
name: 'storybook-preset-less',
options: {
cssLoaderOptions: {
modules: true,
localIdentName: '[name]__[local]--[hash:base64:5]',
},
lessLoaderOptions: {
lessOptions: {
strictMath: false,
noIeCompat: true,
relativeUrls: false,
},
},
}
},
// You can add other presets/addons by using the string declaration
'@storybook/preset-typescript',
'@storybook/addon-actions',
]
}
FAQs
A preset for Storybook to add less support
The npm package storybook-preset-less receives a total of 1,136 weekly downloads. As such, storybook-preset-less popularity was classified as popular.
We found that storybook-preset-less 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.