
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@erect/css-loader
Advanced tools

It loads your CSS isomorphically between server and client using Erect DocumentState manager
/* Header.css */
.header {
background-color: green;
}
.header h4 {
font-weight: bold;
}
.header .side-nav {
font-weight: bold;
}
// Header.d.ts
import { RenderRequest } from '@erect/core';
export const loadStyles: (req: RenderRequest) => void;
export interface IHeaderCss {
header: string;
'side-nav': string;
sideNav: string;
}
export const getStyles: (req: RenderRequest) => IHeaderCss;
import '@erect/static';
import { mount } from '@erect/core';
import headerCss from './header.css';
mount()
.render((req) => {
const styles = headerCss.getStyles(req);
return req.renderStatic(req.html `
<header class="${styles.header}">
<nav class=${styles.navBar}>
<ul>
<li>item</li>
</ul>
</nav>
</header>
`);
});
booleanIt's true by default, it generates typings and emit generated css files, make sure
to use this only when targeting client
objectPass File Loader options
objectPass CSS Loader options
arrayPass an array of loaders to process module after CSS Loader and before File Loader
booleanNo log output
stringAppend a banner message to generated typings
FAQs
Erect CSS Loader
The npm package @erect/css-loader receives a total of 14 weekly downloads. As such, @erect/css-loader popularity was classified as not popular.
We found that @erect/css-loader 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.