kriasoft / isomorphic-style-loader

CSS style loader for Webpack that is optimized for isomorphic (universal) web apps.

Home Page:https://reactstarter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rockus123 opened this issue · 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.

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)

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