
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.
css-module-flow-loader
Advanced tools
Webpack loader for creating Flow type definitions based on CSS Modules files.
This gives you:
Given the following css file using CSS Modules:
.my_class {
display: block;
}
css-module-flow-loader creates the following .flow file next to it:
// @flow strict
/* This file is automatically generated by css-module-flow-loader */
declare module.exports: {|
+'my_class': string;
|};
The css-module-flow-loader need to be added right after style-loader:
$ npm i -D css-module-flow-loader
{
test: /\.css$/, // or the file format you are using for your CSS Modules
use: [
'style-loader',
'css-module-flow-loader',
// other loaders here ...
]
}
To support .scss, .sass or similar files extensions you need to update your .flowconfig file with the following section:
[options]
# Extensions
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.css
module.file_ext=.scss
module.file_ext=.sass
// other files used by flow
Without this Flow might error out with Required module not found.
FAQs
css module flow loader
We found that css-module-flow-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.