isomorphic-style-loader icon indicating copy to clipboard operation
isomorphic-style-loader copied to clipboard

Works for import s from 'file.css', but not for global import 'file.css'

Open rockus123 opened this issue 4 years ago • 2 comments

isomorphic-style-loader v. 5.1 works for withStyles(s) HOC:

import s from './file.css'

but not for global

import './file.css'

Please advise. Thank you.

rockus123 avatar Apr 09 '20 06:04 rockus123

Related: How can global CSS be imported such that global and cascaded styles are correctly applied (without class names)? Note that this CSS is also used by other engines, so it can't rely on any special, non-css syntax (Unless the css continues to work correctly when it's ignored)

Rykus0 avatar Jun 16 '21 16:06 Rykus0

Same issue. Is there any way to fix it other than switching to a module?

jeremygottfried avatar Mar 11 '22 20:03 jeremygottfried