Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
razzle-plugin-sass-dart
Advanced tools
This package contains a plugin for using SCSS/SASS with Razzle
yarn add razzle-plugin-scss --dev
// razzle.config.js
module.exports = {
plugins: ['scss'],
};
Files with an ending in the name _.module.scss and _.module.sass will load as cssModules
example:
import s from './myfile.module.scss';
// razzle.config.js
module.exports = {
plugins: [
{
name: 'scss',
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 node-sass options to override configs.
default
{
dev: {
sourceMap: true,
includePaths: [paths.appNodeModules],
modules: true
},
prod: {
sourceMap: false,
includePaths: [paths.appNodeModules],
modules: true
},
}
Set dev
to add config to postcss in development
.
Set prod
to add config to postcss in production
.
See node-sass 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
Use SCSS/SASS with Razzle
The npm package razzle-plugin-sass-dart receives a total of 1 weekly downloads. As such, razzle-plugin-sass-dart popularity was classified as not popular.
We found that razzle-plugin-sass-dart 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.