![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-app-rewire-postcss-cssmodules
Advanced tools
Add [CSS Module](https://github.com/css-modules/css-modules) loaders to your [create-react-app](https://github.com/facebookincubator/create-react-app) via [react-app-rewired](https://github.com/timarney/react-app-rewired).
Add CSS Module loaders to your create-react-app via react-app-rewired.
CSS Module styles can be written in CSS (including CSSNext)
Unlike codebandits/react-app-rewire-css-modules this fork does NOT contain any SASS. Enough problems with the node-sass lib already.
Also uses [path][name]__[local]
instead of '[local]___[hash:base64:5]
This package is not yet published to the npm registry. Install from GitHub:
yarn add --dev tomaash/react-app-rewire-css-modules
OR
npm install --save-dev tomaash/react-app-rewire-css-modules
Use the following file extensions for any CSS Modules styles:
*.module.css
Files with the following file extensions will load normally, without the CSS Modules loader:
*.css
In your react-app-rewired configuration:
/* config-overrides.js */
const rewireCssModules = require('react-app-rewire-css-modules');
module.exports = function override(config, env) {
// ...
config = rewireCssModules(config, env);
// ...
return config;
}
In your React application:
/* src/App.module.css */
.app {
color: aqua;
&:hover {
color: lawngreen;
}
}
// src/App.js
import React from 'react';
import styles from './App.module.css';
export default ({text}) => (
<div className={styles.app}>{text}</div>
)
FAQs
Add [CSS Module](https://github.com/css-modules/css-modules) loaders to your [create-react-app](https://github.com/facebookincubator/create-react-app) via [react-app-rewired](https://github.com/timarney/react-app-rewired).
The npm package react-app-rewire-postcss-cssmodules receives a total of 1 weekly downloads. As such, react-app-rewire-postcss-cssmodules popularity was classified as not popular.
We found that react-app-rewire-postcss-cssmodules 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.