
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
razzle-plugin-less
Advanced tools
This package contains a plugin for using [LESS](http://lesscss.org/) with Razzle
This package contains a plugin for using LESS with Razzle
yarn add razzle-plugin-less --dev
// razzle.config.js
module.exports = {
plugins: ['less'],
};
// razzle.config.js
module.exports = {
plugins: [
{
name: 'less',
options: {
postcss: {
dev: {
sourceMap: false,
},
},
},
},
],
};
Please remember that custom options will extends default options using Object.assign.
Array such as postcss.plugins WILL NOT BE EXTENDED OR CONCATED, it will override all default plugins.
default
{
dev: {
sourceMap: true,
ident: 'postcss',
},
prod: {
sourceMap: false,
ident: 'postcss',
},
plugins: [
PostCssFlexBugFixes,
autoprefixer({
browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9'],
flexbox: 'no-2009',
}),
],
}
Set dev to add config to postcss in development.
Set prod to add config to postcss in production.
See postcss loader options to override configs.
default
{
dev: {
sourceMap: true,
includePaths: [paths.appNodeModules],
},
prod: {
sourceMap: false,
includePaths: [paths.appNodeModules],
},
}
Set dev to add config to postcss in development.
Set prod to add config to postcss in production.
See less loader options to override configs.
default
{
dev: {
sourceMap: true,
importLoaders: 1,
modules: false,
},
prod: {
sourceMap: false,
importLoaders: 1,
modules: false,
minimize: true,
},
}
Set dev to add config to postcss in development.
Set prod to add config to postcss in production.
See css loader options to override configs.
default
{
}
Style loader only used in development environment.
See style loader options to override configs.
default
{
dev: {},
prod: {},
}
Set dev to add config to postcss in development.
Set prod to add config to postcss in production.
See resolve url loader options to override configs.
FAQs
This package contains a plugin for using [LESS](http://lesscss.org/) with Razzle
We found that razzle-plugin-less 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.