
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
jscss-loader
Advanced tools
Webpack loader for [React Inline](https://github.com/martinandert/react-inline). Unlinke the original React Inline, this loader supports arbitrary JavaScript (or TypeScript) code.
Webpack loader for React Inline. Unlinke the original React Inline, this loader supports arbitrary JavaScript (or TypeScript) code.
Use the ExtractPlugin
to output all styles to an external CSS file.
We assume that the default export is the stylesheet:
// Foo.css.ts
import { width, height } from "./constants";
import { gray } from "./colors";
export default {
container: {
width,
height,
},
title: {
color: gray,
},
};
The
// Foo.tsx
import jss from "./Foo.css.ts";
function Foo() {
return (
<div className={jss.container}>
<h3 className={jss.title}>Hello JSS</h3>
</div>
);
}
JavaScript is not transpiled with Babel because Babel is too large a dependency to include in this library. Avoid writing JavaScript using ES6 features that NodeJS doesn't support yet.
const constants = require("./constants");
const colors = require("./colors");
module.exports = {
container: {
width: constants.width,
height: constants.height,
},
title: {
color: colors.gray,
},
};
const ExtractPlugin = require("jscss-loader").ExtractPlugin;
module.exports = {
module: {
loaders: [
{
test: /\.css.(ts|js)$/,
loader: jssLoader,
}
],
},
plugins: [
new ExtractPlugin(),
],
}
FAQs
Webpack loader for [React Inline](https://github.com/martinandert/react-inline). Unlinke the original React Inline, this loader supports arbitrary JavaScript (or TypeScript) code.
We found that jscss-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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.