-
-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composing a class from a different file does not pass that class through getLocalIdent
#636
Comments
@pillowfication can you describe use case? |
+1 Also seeing this issue. This breaks The use case we have is that we are using a custom Edit: Same issue has been reported before: #524 |
I've been using a custom I've been using the following workaround: /* styles.css */
.my-class {
// Note the compositions here, even though they are applied in another file
// composes: foo bar from "./other-file.css";
color: red;
} /* compose-styles.js */
import { foo, bar } from './other-file.css'
import styles from './styles.css'
// Apply the workaround
styles.myClass = `${styles.myClass} ${foo} ${bar}`
export default styles /* Component.jsx */
import styles from './compose-styles.js' // TODO: switch to `styles.css` when possible
const myClass = styles.myClass |
Thanks @pillowfication that makes sense for a work around. @evilebottnawi - what other information would be helpful here? On the server side we use Is it possible css-loader is missing a plugin from its implementation? |
@franjohn21 PR welcome 👍 |
@pillowfication @franjohn21 I've just come across what appears to be the same problem, but it only occurs when I'm using the Is this case for you too? |
@timswalling What version of |
@franjohn21 thanks for your help. Unfortunately I've tried with webpack @ 3.11.0 and 3.12.0 (and css-loader @ 0.28.11) and it's still happening. It's sounds like it's a slightly different problem to the one you've got, so I'll open a separate issue. |
What is the current behavior?
Composing a class from a different file does not pass that class through
getLocalIdent
.What is the expected behavior?
I expected the same behavior as I would get when I compose from the same file.
The text was updated successfully, but these errors were encountered: