
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@scullyio/scully-plugin-critical-css
Advanced tools
BETA notice: this plugin is still in beta
This plugins uses the critical tool that is maintained by google, and is listed as the official endorsed option on web.dev
npm install -D @scullyio/scully-plugin-critical-css
Then add it to your scully.<projectname>.config.ts like this:
import { criticalCSS } from '@scullyio/scully-plugin-critical-css';
/** the seoHrefOptimise is optional **/
const defaultPostRenderers = ['seoHrefOptimise', criticalCSS];
export const config: ScullyConfig = {
/** more config here */
defaultPostRenderers,
/** more config here */
routes: {
/** more config here */
},
};
The above config will use the plugin on all routes. If you want to use in on a single route, add it to the config of that particular route like this:
export const config: ScullyConfig = {
/** more config here */
routes: {
someRoute: {
type: 'contentFolder', // Or any other type
postRenderers: = [criticalCSS],
},
/** more route configs here */
}
}
You can configure this plugin by using the setPluginConfig helper like this:
setPluginConfig(criticalCSS, {
inlineImages: false,
});
The plugin had the following settings:
export interface CriticalCSSSettings {
/** inline images into the pages when smaller then 10240 bytes */
inlineImages?: boolean;
/** Width of the target viewport */
width?: number;
/** Height of the target viewport */
height?: number;
/** An array of objects containing height and width. Takes precedence over width and height if set */
dimensions?: {
width: number;
height: number;
}[];
/** An array with fully qualified paths to assets, if none is given, the root, and the root/assets will be used to look for static assets*/
assets?: string[];
/** Ignore some css rules */
ignore?: {
atrule?: string[];
rule?: string[];
decl?: (node, value) => boolean;
};
}
For details see the critical tool page
FAQs
> BETA notice: this plugin is still in beta
The npm package @scullyio/scully-plugin-critical-css receives a total of 421 weekly downloads. As such, @scullyio/scully-plugin-critical-css popularity was classified as not popular.
We found that @scullyio/scully-plugin-critical-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.